Skip to main content

0014 — A Docs Site Replaces the PRD

  • Status: Accepted
  • Date: 2026-12-01
  • Deciders: Trevor Williams

Context and Problem Statement​

Most of the app was built with Claude. The only description of the product, docs/PRD.md, is over 3,000 lines and hard to read. Nothing describes the architecture, so understanding the API or the iOS app means tracing raw code. Trevor owns and supports the app and needs to understand it without depending on Claude.

Considered Options​

  • Keep the PRD as the only document and add nothing.
  • Keep the PRD and add a separate architecture site beside it.
  • One docs site, built from docs/, that holds the product spec, the architecture, the API reference, prod support and these decisions.

Decision​

One Docusaurus site, built from docs/ and published to GitHub Pages from main. It becomes the only place the product and the architecture are described. It is written in plain language, with diagrams, and describes the shape of each piece rather than every function.

  • The API reference is drawn from shared/openapi/openapi.yaml at build time, so it cannot drift.
  • The product spec moves out of docs/PRD.md into the site one area at a time. Each area's screens move to data files that draw its screen map and still feed scripts/check-screens.py. docs/PRD.md is deleted when the last area has moved.
  • Freshness is kept by review: a PR that changes behavior updates the matching page (AGENTS.md). scripts/check-docs.py fails CI when a page links to code that no longer exists, or when private data lands on a page.

Consequences​

Positive​

  • One readable place to learn how each piece works and what the product should do.
  • The API reference is always current.

Negative / Trade-offs​

  • The site is public, because the repository is. Prod support pages leave out account IDs and personal details.
  • Hand-written pages can still drift; review is the guard.
  • Until the product spec has moved, it lives in docs/PRD.md, outside the site.
  • ADRs: 0003 (OpenAPI as contract source)