Documentation website for Meowzer, built with Astro and Starlight.
Note: This documentation site serves as a demonstration of documentation best practices and technical writing patterns. While based on real code, it prioritizes illustrating good docs structure over complete accuracy. See About These Docs for full context.
docs/
├── public/ # Static assets (favicons, images)
├── src/
│ ├── assets/ # Images embedded in Markdown
│ ├── content/
│ │ └── docs/ # Documentation pages (.md and .mdx)
│ │ ├── index.mdx
│ │ ├── about.md
│ │ ├── credits.md
│ │ ├── getting-started/
│ │ ├── tutorials/
│ │ ├── concepts/
│ │ ├── guides/
│ │ ├── api/
│ │ ├── examples/
│ │ ├── advanced/
│ │ └── play/
│ └── content.config.ts
├── astro.config.mjs # Astro + Starlight configuration
├── package.json
└── tsconfig.json
All commands are run from the docs/ directory:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
Or from the monorepo root:
| Command | Action |
|---|---|
npm run dev:docs |
Start docs development server |
npm run build:docs |
Build docs for production |
- Create a new
.mdor.mdxfile insrc/content/docs/ - Add frontmatter with title and description
- Update the sidebar configuration in
astro.config.mjs
Example:
---
title: My New Page
description: A description of this page
---
# My New Page
Content goes here...- Sidebar: Edit
astro.config.mjsto modify navigation structure - Styling: Starlight uses CSS custom properties for theming
- Components: Import Starlight components in
.mdxfiles
- Getting Started - Installation, quick start, first cat
- Tutorials - Step-by-step guides for common tasks
- Concepts - Architecture, lifecycle, AI behaviors
- Guides - Best practices, performance, customization
- API Reference - Complete SDK documentation
- Examples - Code snippets and live demos
- Advanced - Plugin development, framework integration
- Play - End-user documentation for interacting with cats