0008. The website is built from the vault's Markdown at build time
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
- Copy content into the website (
apps/website/content/): duplicates the vault and drifts. - A headless CMS: a backend and a second place to edit, which the user ruled out for now.
- Read
/docsdirectly 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 inCONVENTIONAL-SDLC.md. Changing those formats needs a matching change inlib/content.ts. This is documented inapps/website/README.md. - A host must build from the whole repo, not only
apps/website, because the content lives in/docs.