Giter VIP home page Giter VIP logo

docs's Introduction

Daytona logo



License Issues - daytona

Daytona Documentation

Daytona's user and developer documentation.

Report Bug · Join Our Slack · Twitter


Development

The Daytona Documentation website is built using Astro and Stralight. The core of the website is built in React, with documentation and other content built in MDX.

Setting up a Development Environment

The easiest way to start working on the documentation is by using a DEM such as Daytona. You can create a Workspace with the dependencies and configuration needed to preview the docs locally by executing the following command:

daytona create https://github.com/daytonaio/docs.git

Alternatively, if your local machine has Node.js and Yarn set up, you can clone this repository and execute yarn install to install the required dependencies.

Useful Commands

This repository uses Yarn to handle project management. For convenience, a number of scripts are defined in package.json that can be called using Yarn:

Command Action
yarn run dev Starts local dev server at localhost:4321
yarn run build Builds your production site to ./dist/
yarn run preview Previews your build locally before deployment
yarn run astro ... Runs CLI commands like astro add, astro check
yarn run astro -- --help Provides help for using the Astro CLI
yarn run update-cli-reference Update the Daytona CLI reference docs using autogenerated CLI docs`

Navigating the Docs

On the filesystem, you'll find the content in ./src/content/docs in the form of .mdx files. Daytona's documentation is organized into broad topics:

  • Configuration Information around configuring the main components of Daytona.
  • About
    Background and conceptual information about Daytona and DEMs.
  • Installation
    Information around installing Daytona under different environments.
  • Reference
    Technical and architectural information about Daytona.
  • Usage
    Practical information on using Daytona.

Contributing

Daytona is licensed under the Apache License 2.0. If you would like to contribute to the software, you must:

  1. Read the Developer Certificate of Origin Version 1.1 (https://developercertificate.org/)
  2. Sign all commits to the Daytona project.

This ensures that users, distributors, and other contributors can rely on all the software related to Daytona being contributed under the terms of the License. No contributions will be accepted without following this process.

License

This repository contains Daytona's Documentation website, covered under the Apache License 2.0, except where noted (any Daytona logos or trademarks are not covered under the Apache License, and should be explicitly noted by a LICENSE file.)

Daytona is a product produced from this open source software, exclusively by Daytona Platforms, Inc. It is distributed under our commercial terms.

Others are allowed to make their own distribution of the software, but they cannot use any of the Daytona trademarks, cloud services, etc.

We explicitly grant permission for you to make a build that includes our trademarks while developing Daytona itself. You may not publish or share the build, and you may not use that build to run Daytona for any other purpose.

Code of Conduct

This project has adapted the Code of Conduct from the Contributor Covenant. For more information see the Code of Conduct or contact [email protected]. with any additional questions or comments.

Questions

If you need guideance on contributing to Daytona, talk to us on Slack.

docs's People

Contributors

osslate avatar stefanicjuraj avatar tpuljak avatar swearengen avatar mikimih avatar idagelic avatar anshgrover23 avatar gtsiolis avatar lbrecic avatar dependabot[bot] avatar

Stargazers

Sweet Onion 🧅 avatar  avatar Nikola Balic avatar  avatar

Watchers

 avatar Nikola Balic avatar Goran Draganić avatar Ivan Burazin avatar Vedran Jukic avatar

docs's Issues

Readme

The Readme is not consistent with Daytona standards. Additionally, all essential information regarding how to contribute and the structure of the documents has been deleted.

Move Server to Usage

Feel that "Server" should be under Usage not reference?

Would leave reference for CLI, API and similar

Some links are broken at daytona.io documentation page

Describe the bug
Some links are broken at daytona.io documentation page

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://www.daytona.io/docs/installation/installation/'
  2. 1st broken link: add a git provider on front page.
  3. 2nd broken link: use the cli on front page.
  4. 3rd broken link builders
  5. Click on it '
  6. See error page.

Expected behavior

  1. correct first link: Go to cli refer here.
  2. correct second link: add a git provider refer here.
  3. correct second link: builders refer here.

Screenshots
image

Desktop (please complete the following information):

  • Any
  • Daytona Version: Documentation [v0.21]

Additional context
Will add more broken links as soon as possible.

Change brew install path

The brew install path was updated to daytonaio/tap/daytona. We should update that in the installation guide

Full first onboarding flow in docs

We should consider adding a full first onboarding flow inside docs, including instructions for external tools, for example VS code add code to shell, docker install, and all other papercuts.

Design Daytona architecture diagram

To help users understand how Daytona works, we need a clear architecture diagram. For simplicity, we'll draft (and potentially implement) the architecture diagram using Mermaid, so it's easily editable as Daytona evolves.

Version in header should have patch version stripped

To facilitate patch versions of the docs (independent from Daytona itself), we should strip the patch version displayed on the website and leave it as x.y. After a discussion with @vedranjukic, it appears the patch element of Daytona releases are going to signify bug fixes.

Since Daytona patch versions don't introduce new features or change existing functionality, we can leverage the patch version to signify in-between docs updates and have the website display 0.16, 0.17, etc. rather than 0.16.0, 0.17.1 etc.

Design Missing Elements for API

Current design missing a lot of elements see demo and our live docs side by side
Screenshot 2024-06-19 at 09 04 48

Need designer to create in Figma following design standard of Daytona docs.

If purge doesn't work

If purge doesn't work, add manual instructions :

rm -rf ~/Library/Application\ Support/daytona

Run command in VS Code doesnt work.

I suggest ensuring that the following command can be used in both Codespaces and Daytona: yarn run dev --host.

If it is compatible, consider editing the development container configuration to include this command. Here's how you can do it:

Check Compatibility in Codespaces:

Open your Codespaces environment.
Run the command yarn run dev --host in the terminal.
Verify if the command executes successfully.
Check Compatibility in Daytona:

Open your Daytona environment.
Run the command yarn run dev --host in the terminal.
Verify if the command executes successfully.
Edit Development Container Configuration:

If the command works in both environments, update the development container configuration (devcontainer.json)

Add Configuration -> Providers page

As discussed in #1, this page will detail Providers (e.g. Docker, and in the future others like DigitalOcean, AWS, etc.) and Targets, explaining the distinction between both and how to configure them.

Spacing Issues across Daytona.io

None of the spacings seem to be consist and very few are correct.

Please refer to Figma for correct spacing
Screenshot 2024-05-31 at 16 18 18
Also make sure to correct this on dotfiles, Documentation, Contact, Changelog, Definitions...
@mikimih

Add direct GitHub links to corresponding MDX source files on each page

To encourage others to contribute to the docs, we should include a link to the source on GitHub for each documentation page. From there, people can choose to fork this repo and edit the file in a branch using GitHub's web editor, or at the very least, they will know where they can find the content of the doc on their filesystem.

This should be dynamically done with Astro, avoiding a scenario where we need to define the URL manually for each page.

Table style isn't consistent

The first table on a page appears to gain the correct styling, but subsequent tables are not styled correctly and appear out of place. See the CLI reference as an example (source code here). I can verify this also happens if I create another page with more than one table.

Tasks:

  • Verify the table design matches Figma
  • Investigate why the style isn't being applied to tables after the first one and implement a fix

Text colors light mode

As per Figma, All text on light mode should be the same (note titles are a different shade)
Screenshot 2024-05-31 at 15 51 57

Currently we have multiple and is barley readable
Screenshot 2024-05-31 at 15 54 40

@mikimih

Docs need a version selector

There are two tasks to be completed here:

  • A suitable drop-down design for a version selector. Users should be able to select the version of the docs they're viewing easily. Pinging @ivan-burazin for more input on the design front.
  • Implementation of the necessary Astro components and infrastructure to deploy versioned docs to daytona.io

Change npm to yarn in README

We should change npm references to yarn in the README since we prefer yarn and have yarn.lock already committed.

Implement tabbed interface from Figma design

This component needs to be implemented for use across the docs:

image

Ideally the usage looks something like this:

<TabbedContent>
  <Tab title="From Daytona Dashboard">
    Markdown content _here_
  </Tab>
  <Tab title="Via Dashboard URL">
    Markdown content _here_
  </Tab>
</TabbedContent>

Would also be nice to have an optional icon attribute to set an icon appearing on the left of the tab title, but deferring to @ivan-burazin

cc: @mikimih

Update of installation page

I really like how Fly structured their CLI installation page: Fly CLI Installation.

The content bar clearly shows what a user is looking for, whether it’s Win/Mac/Linux, and is organized with user needs in mind. Additionally, package managers are listed under the OS they fit.

Automate CLI reference doc generation

Currently, the CLI reference is edited manually for each release. It appears possible using Cobra (the CLI framework Daytona uses) to automate Markdown generation based on the commands/subcommands/flags it knows of at runtime.

Implementing this will allow us to generate precise, accurate CLI reference documentation for each release, and ensure that the docs reflect the exact state of Daytona. Once implemented, it means we will not need to manually edit or change the CLI reference docs for accuracy.

cc: @Tpuljak for implementation ideas

Document a Glossary of Terms

It should cover the most common phrases used in the Daytona documentation as a helpful reference to refer to.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.