Source for the Repl Toolkit documentation, built with Astro Starlight.
src/content/docs/
├── getting-started/ # Installation, first app, CLI/REPL/MCP modes, migration guide
├── cookbook/ # Task-focused guides (core basics, modules, prompts, testing, …)
├── reference/ # API-level reference (routes, DI, modules, MCP, data types, …)
└── api/ # Generated API reference MDX, ignored by git
The API reference under /api/ is generated at build time. DocFX extracts managed-reference YAML from the Repl source, then scripts/generate-api-mdx.mjs converts it into Starlight content.
npm install
npm run docs:api # regenerate API reference MDX
npm run dev # regenerate API reference and start http://localhost:4321
npm run build # regenerate API reference and build ./dist/
npm run preview # preview the production build locallyPushes to main trigger the GitHub Actions workflow (.github/workflows/deploy.yml), which:
- Resolves the latest Repl release tag.
- Checks out the Repl source at that tag.
- Generates Starlight API reference content with DocFX metadata.
- Builds the Astro site.
- Deploys to GitHub Pages.
A daily scheduled run keeps the API reference in sync with new releases even without a doc change.