The docs site is built with Astro Starlight and published to GitHub Pages at https://cheshire-cat-ai.github.io/docs/.
- Fork the repository and branch off
main. - Edit or add Markdown files under
src/content/docs/. Each page needs atitlein its frontmatter; the sidebar lives inastro.config.mjs. - Co-locate images under
src/content/docs/assets/img/and reference them with relative paths — Astro optimizes them automatically. - Commit, push, and open a pull request against
main.
Don't be shy if you need help: open an issue or start a discussion on GitHub!
npm install # install dependencies
npm run dev # local dev server with hot reload, at /docs/
npm run build # production build into dist/
npm run preview # preview the production buildRequires Node.js 22+.
- Callouts use Starlight asides:
:::note,:::tip,:::caution,:::danger. - Tabs use the
<Tabs>/<TabItem>components (in.mdxfiles). - Diagrams use Mermaid — just fence a code block with
```mermaid.
The published site hosts two versions, selectable from the switcher in the sidebar:
- v2 (latest) — this repository, served at
/docs/. - v1 — the previous docs, already deployed and left untouched at
/docs/1/.
The deploy workflow (.github/workflows/main.yml) rebuilds v2 on every push to
main and preserves the existing /1/ folder on the gh-pages branch.