Supernova is a highly customized Starlight documentation site designed to showcase and provide recipes for advanced Astro features. It features a unique tabbed sidebar system to separate Astro and Starlight specific content, along with various pre-configured integrations.
git clone https://github.com/AREA44/astro-supernova
cd astro-supernova
pnpm install| Command | Action |
|---|---|
pnpm dev |
Starts the development server at localhost:4321 |
pnpm build |
Builds the production site to dist/ |
pnpm preview |
Previews the production build locally |
pnpm check |
Runs linting (oxlint) and formatting (oxfmt) checks |
pnpm fmt |
Formats the codebase using oxfmt |
Supernova follows a specific structure for adding new documentation "recipes":
- Location: Choose either
src/content/docs/astro/orsrc/content/docs/starlight/based on the topic. - File Format: All recipes must use the
.mdxextension. - Recipe Structure:
- Introduction: Briefly explain what the recipe achieves.
- Step-by-Step Guide: Use the Starlight
<Steps>component. - Resources: Include a "Next steps" or "Resources" section at the end.
- Navigation: If you add a new directory or want to change labels, update
src/content/nav/en.tsandconfig/sidebar.ts.
To learn more about the underlying technologies, visit: