Documentation Style Guide¶
Use this guide when adding or changing user-facing docs.
Page Contract¶
Each task-oriented page should follow this order:
When to usePrerequisitesStepsExpected resultNext steps
Reference pages may use schema-first sections instead.
Terminology¶
Use these terms consistently:
pipeline configplugin manifestruntimestagediagnostics
Avoid aliases like "config file" or "plugin list" when the exact contract matters.
Snippet Rules¶
- Every fenced block must include a language.
- CLI commands use
bashand start with$. - TOML snippets should be complete and minimal.
- Python API snippets include imports and result inspection.
UX Writing Rules¶
- Open with a short lead paragraph.
- Use short sections and scannable headings.
- Add explicit failure guidance with
!!! warningblocks where relevant. - Cross-link to one reference page and one troubleshooting page from every guide.
Theme and Color Rules¶
- Use semantic tokens in
docs/stylesheets/extra.css(for example--bg-surface-1,--text-secondary,--link) instead of hardcoded hex values. - Keep both supported schemes (
slatedefault,defaultoptional) visually aligned for hierarchy and interaction states. - Preserve clear focus-visible states and AA contrast when adding or changing component styles.
Quality Gates¶
Docs changes must pass:
bash scripts/check_docs_refs.shpython scripts/check_markdown_style.pypython scripts/check_markdown_links.pypytest tests/docs -q