Content Authoring
Docs pages are sourced from src/content/docs/**/*.{md,mdx}.
Required Frontmatter
Every docs file needs this frontmatter shape:
---
title: Your Page Title
order: 1
section: Basics
description: Short page summary
---title: page title and sidebar labelorder: sort order inside a sectionsection: sidebar group labeldescription(optional): meta description
Add a New Doc Page
- Create a file in
src/content/docs, for examplemy-page.mdx. - Add frontmatter fields required by the docs collection schema.
- Write Markdown or MDX content.
- Visit
/docs/my-pagelocally.
Nested Routes
You can create subfolders and get nested routes:
src/content/docs/guides/auth.mdx->/docs/guides/auth
Copy Markdown Behavior
Each docs page also has a raw markdown endpoint at the same path with .md appended.
Example: /docs/getting-started.md.
This powers the “Copy markdown” action in the docs layout.