tools/templates/README.md
Scripts for maintaining template READMEs and metadata in the SpacetimeDB repo. Output is consumed by spacetimedb.com for the templates page.
templates/<slug>/README.md. Discovers mappings by parsing --template X from quickstart files. Templates can override with a quickstart field in .template.json (must point to a file in the quickstarts dir).builtWith in each templates/<slug>/.template.json from package.json, Cargo.toml, and .csproj manifestsFrom this directory:
pnpm install
pnpm run generate
Or individually:
pnpm run generate-readmes
pnpm run update-jsons
Run after changing quickstart docs (docs/docs/00100-intro/00200-quickstarts/) or adding/renaming templates. Commit the generated READMEs and updated .template.json files.