Skip to main content

Generated Docs

Everything in wiki/generated/ — this page included — is machine-written by bun run wiki:build (tools/build-wiki.ts + the generators in tools/wiki/). Never edit these files by hand: your change is overwritten on the next build, and a page that drifts from what its generator would produce fails the gatesbun run wiki:check (pre-push + CI docs job) for the source-derived pages, bun run wiki:bundle:check (right after the production build in pre-push + CI's test job) for the bundle page. Each page carries a banner naming its generator and data source.

PageWhat it showsDerived fromRefresh
Storybookstory inventory, play coverage, storyless components*.stories.ts sourceswiki:build
Test Coverageper-project coverage vs enforced thresholdscoverage-summary.json from --coverage runswiki:build
Production Bundleship sizes, package weights, project import graphdist/ + stats.json + nx graphbuild:prod + wiki:build
Routesboth apps’ sitemap: guards, flags, visual coverageapp.routes.ts + visual-diff manifestswiki:build
Entitlementstier ladder + permission matrix (executes can())@stretched/types acl/entitlementswiki:build
Story Graphruntime story dependency DAGstory-teller story sourceswiki:build
Functions APICloud Functions endpoints, auth markers, secrets, collectionsapps/firebase-functions/srcwiki:build
E2E FlowsPlaywright flow inventory (web / mobile / extension)apps/playwright-e2e/src *.e2e.tswiki:build

Adding a generated page

  1. Write a generator in tools/wiki/ that returns the page markdown — start it with GENERATED_NOTICE and render generatedBanner({...}) under the H1 (both from tools/wiki/generated-page.ts). Diagrams are mermaid fences, so they render on GitHub and in the local site alike.
  2. Register it in tools/build-wiki.ts (cheapPages() if it needs no build, or the bundle path if it does) and add its row to the GENERATED_INDEX there — this README regenerates from that registry.
  3. Pin the parser with tests in tools/build-wiki.spec.ts (wiki:test).
  4. List the page in wiki/_Sidebar.md, wiki/Home.md, and the table on Wiki Publishing.