How to contribute documentation to Mir¶
Documentation improvements are a first-class contribution to Mir. If you find unclear wording, stale instructions, or missing guidance, please open a docs pull request.
Understand where content belongs¶
Mir documentation in doc/sphinx/ follows the Diátaxis framework:
tutorial/for learning-oriented guideshow-to/for step-by-step task guidesexplanation/for concepts and backgroundreference/for technical detail and specificationsconfiguring/for end-user configurationcontributing/for contributor workflows
When adding a page, choose the section by user need rather than by topic name.
Make a focused docs change¶
Keep each pull request focused on one docs outcome (for example: fix one stale guide, or add one missing guide).
Prefer concrete examples and copyable commands.
Keep language concise and direct.
If you move or rename a page, add a redirect in
doc/sphinx/redirects.txt.
Build and validate docs locally¶
From the repository root, use the CMake doc targets:
cmake -B build
cmake --build build --target doc-html
cmake --build build --target doc-linkcheck
cmake --build build --target doc-spelling
If you are iterating on wording and layout, doc-serve is useful for live preview.
Submit a documentation pull request¶
In your PR description:
explain who the page/change helps,
describe what changed,
list what checks you ran (for example
doc-htmlanddoc-linkcheck).
If your change affects contributor workflows, add links from index pages such as doc/sphinx/contributing/index.md or doc/sphinx/contributing/how-to/index.md.