Starlight Integration
Chisel can automatically adapt to projects using the Astro Starlight documentation framework.
How it works
Section titled “How it works”Chisel detects the presence of src/content/docs/ in your repository. If found, it will bypass its default .chisel/docs/ folder and use your Starlight directory as the source of truth.
Features
Section titled “Features”- Zero Config: Just run
chisel docsin a Starlight project. - Metadata Mapping: Chisel maps Starlight’s
sidebar.orderfield to the TUI’s internal sorting logic. - MDX Support: Chisel can read and preview
.mdxfiles natively.
Frontmatter Compatibility
Section titled “Frontmatter Compatibility”Chisel respects Starlight’s metadata schema while adding its own when necessary.
Starlight Frontmatter:
title: My Docsidebar: order: 1Chisel Mapping:
- Chisel’s
orderfield maps to Starlight’ssidebar.order. - Chisel adds
created_atwhich Starlight safely ignores.
Manual Configuration
Section titled “Manual Configuration”If your Starlight docs are in a non-standard location, or if you want to force Chisel to use a specific directory, you can currently use a symlink:
ln -s custom/docs/path .chisel/docsNote: Automated configuration via chisel.toml is planned for a future release.