Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation #10

Open
ChristopherBiscardi opened this issue Oct 6, 2020 · 6 comments
Open

Documentation #10

ChristopherBiscardi opened this issue Oct 6, 2020 · 6 comments
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@ChristopherBiscardi
Copy link
Collaborator

ChristopherBiscardi commented Oct 6, 2020

There are no public docs at the moment. There are a few example sites around but we could make them more usable, discoverable, etc. Great documentation is a requirement before going GA. It is ok for the beta because we can help people in Discord, etc.

This issue needs to be broken down into more issues

@ChristopherBiscardi ChristopherBiscardi added the documentation Improvements or additions to documentation label Oct 6, 2020
@ChristopherBiscardi ChristopherBiscardi added this to the Beta milestone Oct 16, 2020
@maxcell
Copy link
Collaborator

maxcell commented Oct 20, 2020

Things that would be worth documenting in one location:

  • Any important folder structuring or files worth noting? (src/pages/* + toast.js)
  • APIs (setDataForSlug)
  • Setting up a project with a starter
  • Troubleshooting (?)
    • This might not be necessary given that you've done work to embed how to get help within the errors themselves

Edit:

  • yarn create toast as a quickstart

@maxcell
Copy link
Collaborator

maxcell commented Oct 20, 2020

I think similar to https://mdxjs.org, it would be nifty to have a set of guides around the extra tooling you provide/patterns that emerge from the ecosystem.

If you wanted more folks to contribute to the rust side of toast I think there may be something separate you'd want (docs.rs for example) but also it could be some Architectural document potentially.

@maxcell
Copy link
Collaborator

maxcell commented Oct 24, 2020

If you wanted a set of sections written out, where would you be interested in having them? Maybe just a Markdown file as a PR to start and maybe another PR towards a more formal page in the www site?

@ChristopherBiscardi
Copy link
Collaborator Author

I've been thinking about this a bit lately.

The path forward is probably going to be put them in a root docs/ directory in toastdotdev/toast.

Then www.toast.dev will pull in the main branch and the latest release to render. This gives us documentation for every version (bread is released on merge), and also the releases (toast is released on changeset merge).

so the URLs on the toast site will be something like

toast.dev/docs/<version>/<files-in-docs>
toast.dev/docs/bread/files-in-docs

where version is either semver or a redirect from latest to the most recent release.

@ChristopherBiscardi
Copy link
Collaborator Author

Seems like we end up with something like this for now

.
├── api
│   └── toastfile.mdx
├── api.mdx
├── getting-started
├── getting-started.mdx
├── guides
│   ├── beef.mdx
│   └── setting-up-mdx.mdx
├── guides.mdx
└── troubleshooting.mdx

@ChristopherBiscardi
Copy link
Collaborator Author

Guides: Adding client-side only functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants