Skip to main content

0002: Docs in the repo with Docusaurus

Status: Accepted Date: 2026-10-17

Context​

Setup steps, architecture and conventions were spread across a long README and external docs. New developers and AI coding assistants both need one current source of truth that changes in the same PR as the code.

Decision​

Markdown docs in docs/docs/, built with Docusaurus 3 and Mermaid for diagrams. docs/ is a standalone npm project, not a workspace, so its React and webpack versions can't interfere with Expo's pinned dependencies. The root CLAUDE.md points AI assistants at these pages.

Alternatives considered​

  • README only: fine for setup, but it doesn't scale to architecture, schema rules and ADRs.
  • Notion or Google Docs: easy to edit, but they drift from the code, aren't reviewed in PRs, and aren't readable by local tools.
  • An npm workspace for docs: a single install, but hoisting could pull a second React or webpack next to Expo's.

Consequences​

  • .\vesper docs serves the site and .\vesper docs-build fails on broken links.
  • Docs need a separate npm install (done by .\vesper setup).
  • Hosting (for example GitHub Pages) can be added later with no content changes.