0008. The website is built from the vault's Markdown at build time

accepted Decided 23 November 2026

Context

The user wants the research shown on the website, easy for them and others to read, with the content in Markdown files and no backend yet.

Options

  1. Copy content into the website (apps/website/content/): duplicates the vault and drifts.
  2. A headless CMS: a backend and a second place to edit, which the user ruled out for now.
  3. Read /docs directly at build time: one source of truth; editing the vault edits the site.

Decision

Option 3. apps/website/lib/content.ts reads the vault with synchronous file reads, which Next.js 16 (with Cache Components) treats as predictable values, so every page is prerendered as static HTML. Only selected parts are published: the main docs, case-studies/, decisions/ and status.md. The request log appears as titles and commits only; the verbatim requests stay in the repo.

To give the "other factories" section structured data (results, tooling, autonomy), case studies became one Markdown file each in docs/case-studies/, with frontmatter.

Consequences

  • Some home page sections parse document structure: the Goal list in SOFTWARE-FACTORY.md, ### N. phases and **Gate**: lines in CONVENTIONAL-SDLC.md. Changing those formats needs a matching change in lib/content.ts. This is documented in apps/website/README.md.
  • A host must build from the whole repo, not only apps/website, because the content lives in /docs.

Follow the research

Occasional notes from the lab as the factory takes shape: what we tried, what worked, and what didn’t.