How-to: contribute to the docs¶
Use this guide when you add or change documentation pages.
Step 1 — Pick exactly one Diátaxis type¶
Every page must be exactly one of:
- Tutorial
- How-to
- Reference
- Explanation
If a page mixes intents, split it (see quality gates).
Reference:
- Documentation quality gates: Documentation quality gates
- Docs templates: Docs templates
Step 2 — Add front matter and one H1¶
At the top of every Markdown page:
---
diataxis: <tutorial|how-to|reference|explanation>
tags:
- <tag>
---
# <One H1 title>
Rules:
- Exactly one
#heading per page - Link text must be intent-first (no raw file paths)
Reference:
- Linking and naming: Linking and naming style reference
Step 3 — Wire the page into navigation¶
Add the page to mkdocs.yml under the correct Diátaxis group.
If you move or rename pages, also update redirects:
plugins.redirects.redirect_mapsinmkdocs.yml
Step 4 — Run lint and fix issues¶
python3 scripts/docs_lint.py
Fix any violations (H1, Diátaxis missing, link labels, read-next hygiene) before merging.
Step 5 — Validate persona journeys (optional but recommended)¶
If you touched persona hubs or major navigation, re-run the journey tests:
Read next¶
- Run docs locally: How-to: run the docs locally
- Documentation quality gates: Documentation quality gates
- Linking and naming: Linking and naming style reference
- Persona rubric: Persona journey tests and scoring rubric