# ADR 0001: Sphinx + MyST for documentation - **Status:** Accepted - **Date:** 2026-12-02 ## Context Docs must be open source, publishable as a website, written alongside the code, and must include an API reference generated from code docstrings. Options considered: Sphinx (+ MyST), MkDocs / Material for MkDocs (+ mkdocstrings), Docusaurus. ## Decision Use **Sphinx** with **MyST Markdown**, the **Furo** theme, **sphinx-autoapi** for the Python API reference and **Mermaid** for diagrams. ## Consequences - Writers use Markdown; no reStructuredText needed. - The API reference is generated from the same docstrings the code uses, so "documented in code" and "published docs" cannot drift apart. - Sphinx is long-established (Python itself, Linux kernel) and has strict cross-reference checking (`-W`) for CI. - Published to GitHub Pages by a GitHub Actions workflow (free for public repositories). - Material for MkDocs was not chosen: it has moved into maintenance mode, and its successor is still young. Docusaurus was not chosen: it adds a Node toolchain to the docs and has weaker Python API generation.