Getting Started
Getting Started
Chronicle is a config-driven documentation framework built on Vite, Nitro, and Apsara UI components. Write MDX content, configure with a single YAML file, and get a fully themed documentation site.
Installation
bun add @raystack/chronicleQuick Start
1. Initialize a new project
chronicle initThis creates:
chronicle.yaml— your site configurationcontent/— content directory with a sampleindex.mdx.gitignore— withnode_modules,dist,.outputentries
To use an existing directory as content (e.g. docs/):
chronicle init -c docs2. Start the development server
chronicle devYour docs site is now running at http://localhost:3000.
3. Add content
Create .mdx files in your content directory. Each file becomes a page. Use folders to create nested navigation.
my-docs/
├── chronicle.yaml
├── content/
│ ├── index.mdx
│ ├── getting-started.mdx
│ └── guides/
│ ├── installation.mdx
│ └── configuration.mdx
└── .output/ # build output, gitignored4. Build for production
chronicle build
chronicle startOr use the combined command:
chronicle serveProject Structure
A minimal Chronicle project looks like:
my-docs/
├── chronicle.yaml # Site configuration
├── content/
│ ├── index.mdx # Home page
│ └── guides/
│ └── setup.mdx # Nested page at /guides/setup
└── .output/ # Build output, gitignoredAll configuration is done through chronicle.yaml. No additional config files needed.
Next Steps
- CLI Commands — All available CLI commands and flags
- Configuration — Full
chronicle.yamlreference - Frontmatter — Page-level metadata options
- Components — MDX components and admonitions
- Themes — Available themes and customization