Skip to main content

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.

ContentLocation
Guides and specificationsdocs/docs/
Architectural decisionsdocs/docs/adr/
Website assetsdocs/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:

TypeUse for
NoteContext or limitations
TipHelpful recommendations
InfoPrerequisites or status
WarningRisks and compatibility issues
DangerDestructive actions or serious security risks
Project status

Distinguish planned capabilities from implemented features.

tip

Link to the canonical document rather than repeating its contents.

Compatibility

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.