Skip to content

Latest commit

Β 

History

History
60 lines (45 loc) Β· 1.28 KB

File metadata and controls

60 lines (45 loc) Β· 1.28 KB

Cel for .NET β€” documentation site

Astro Starlight site, source under src/content/docs/.

Local development

cd docs
npm install
npm run dev          # http://localhost:4321

Build

npm run build        # outputs to docs/dist
npm run preview      # serve the built site locally

Layout

docs/
β”œβ”€β”€ astro.config.mjs        # Site title, sidebar, theme
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ content.config.ts   # Starlight content collection
β”‚   β”œβ”€β”€ content/docs/       # All markdown / mdx pages
β”‚   β”‚   β”œβ”€β”€ index.mdx
β”‚   β”‚   β”œβ”€β”€ getting-started/
β”‚   β”‚   β”œβ”€β”€ concepts/
β”‚   β”‚   β”œβ”€β”€ guides/
β”‚   β”‚   └── reference/
β”‚   └── styles/custom.css
└── package.json

Editing

Pages are plain Markdown (.md) with Starlight's frontmatter:

---
title: Page title
description: Shown in search and as the meta description.
---

The MDX landing page (index.mdx) imports Starlight components for hero + card grid layouts.

Adding a page

  1. Drop a new .md (or .mdx) under src/content/docs/<section>/.

  2. Add an entry to the matching sidebar group in astro.config.mjs:

    { label: 'My new page', slug: '<section>/<filename>' }
  3. npm run dev picks it up immediately.