ADR-0005 — Documentation is an Obsidian vault in docs/, published with Quartz
Status: accepted
Context: Design knowledge (formats, model contract, decisions) must stay with the code, readable both in an editor and on the web, and small enough for an agent to read only what a task needs.
Decision: docs/ is an Obsidian vault (plain Markdown, [[wikilinks]], callouts), set up the way MagierSpieleSchmiede’s game template does it. site/build.sh fetches MathStruct’s Quartz preset at a pinned commit and builds it; .github/workflows/deploy.yml publishes main to GitHub Pages and the preview branch to /preview/.
Rejected alternative: mdBook (no wikilinks or backlinks). A wiki outside the repo (drifts away from the code).
Consequences: Needs Node 22 (in the flake). GitHub Pages must be set to Deploy from a branch: gh-pages, /.