Generator for a 37-page A4 printable-and-fillable patient starter kit.
Source of truth for form fields is ../framework/document-registry.json.
Step guide content lives in content/steps/. Matter lives in content/matter/.
npm install
npm run build
npm run preview # visit http://localhost:8080
npm run build writes dist/html/ (one HTML per page plus an index).
PDFs are built in CI only (see .github/workflows/starter-kit.yml).
content/steps/<step-id>.md with the front-matter schema (see an existing file).<step-id> is listed in ../framework/ownership-matrix.json — the generator
will refuse to build an orphan step.npm run build && npm test.Add the object to ../framework/document-registry.json with a critical_fields array.
Every entry in that array becomes one form field. The generator refuses to build if
critical_fields is empty.
All HTML must pass axe-core and pa11y with zero violations. PDFs must pass veraPDF’s PDF/UA-1 conformance check. The CI workflow enforces all three.