Documentation¶
Where each kind of document belongs, the bilingual file convention, and how to keep the index accurate.
Documentation Rules¶
Documentation lives in several places. Use the right home for the right kind of content.
- user and developer docs:
docs/ - internal active notes:
docs/internal/stable/ - internal archive:
docs/internal/archive/ - command behavior authority:
docs/usage/cli/index.md
Pages are organized by topic, mirroring the gside layout:
docs/
index.md documentation home
installation/ install guide, quick start, configuration, pipelines
usage/ CLI reference, backends, providers, and guides
architecture/ system design
reference/ FAQ
development/ contributing
Every page has a Chinese sibling with a .zh.md suffix (quick-start.md →
quick-start.zh.md); the i18n plugin builds /zh/ from those files. Section
landing pages are index.md and use Material grid cards to link their children.
When you change command behavior, update docs/usage/cli/index.md. When you add or reorganize docs, check docs/index.md so the index stays accurate.
Useful docs to cross-reference:
docs/installation/guide.mddocs/installation/quick-start.mddocs/usage/cli/index.mddocs/architecture/index.md
Adding a page¶
- Create
docs/<section>/<page>.mdanddocs/<section>/<page>.zh.md. - Add both to
navinmkdocs.ymlwith a label. - Add the label to
nav_translationsfor thezhlocale if it is new. - Link it from the section
index.md/index.zh.mdcard grid. - Run
pixi run mkdocs build --strictandpixi run check.
Bilingual pair example¶
docs/usage/backends.md
docs/usage/backends.zh.md
The zh page links to .zh.md siblings; the i18n plugin rewrites language
selection automatically during the build.
Section map¶
| Section | Holds |
|---|---|
installation/ |
install, quick start, configuration, pipelines |
usage/ |
CLI reference and task guides |
architecture/ |
internal design |
reference/ |
troubleshooting and error reference |
development/ |
contributor workflow |
Review checklist for docs PRs¶
[ ] English and Chinese pages both updated
[ ] nav + nav_translations entries added
[ ] section index card links to the new page
[ ] mkdocs build --strict passes
[ ] commands in examples actually run