Writing documentation
Keep documentation in the Docusaurus site. Write for humans: answer the question first, explain only what matters, and link to the canonical source rather than repeating it.
| Content | Location |
|---|---|
| Guides and specifications | docs/docs/ |
| Architectural decisions | docs/docs/adr/ |
| Website assets | docs/static/ |
Use Mermaid for architecture and workflows when it clarifies the explanation. For example, a documentation change follows this path:
Keep diagrams focused, include a short explanation, and check readability in both colour themes. Avoid raw logs, repetitive text and unverified claims.
Highlight important information
Use native admonitions sparingly. Match the type to the message:
| Type | Use for |
|---|---|
| Note | Context or limitations |
| Tip | Helpful recommendations |
| Info | Prerequisites or status |
| Warning | Risks and compatibility issues |
| Danger | Destructive actions or serious security risks |
Distinguish planned capabilities from implemented features.
Link to the canonical document rather than repeating its contents.
When a change breaks compatibility, explain who is affected and how to migrate.
For danger callouts, explain the consequence and how to avoid it. Do not use severity labels just for decoration.
Write admonitions as follows:
:::warning[Descriptive title]
Explain the risk and how to mitigate it.
:::
Use numbered steps for procedures, tables for comparisons, fenced code blocks for examples and descriptive links for navigation.
Run npm run build from docs/ before submitting changes when dependencies are available. Review links and rendered diagrams. Do not commit generated output.