adding handbook and docs pages
both handbook and docs use the same system. pages are MDX files (markdown with React component support) that live in the content/ folder.
folder structure
content/
├── handbook/ → /handbook/*
│ ├── index.mdx → /handbook (landing page content)
│ ├── 01-section/ → /handbook/section
│ │ ├── index.mdx → section landing page
│ │ └── 01-page.mdx → /handbook/section/page
│ └── 02-other.mdx → /handbook/other
└── docs/ → /docs/*
└── (same structure)
creating a new page
- create an
.mdxfile in the appropriate folder - add frontmatter with at least a title:
---
title: "your page title"
---
- write your content in markdown below the frontmatter
ordering pages
use numeric prefixes to control the order in the sidebar menu:
01-first-page.mdxappears before02-second-page.mdx- prefixes are stripped from URLs (
01-setup.mdx→/docs/setup) - pages without prefixes appear at the end, sorted alphabetically
creating sections (nested pages)
- create a folder with a numeric prefix:
01-section-name/ - add an
index.mdxinside for the section landing page - add child pages with their own prefixes:
01-child.mdx,02-child.mdx
using React components
since these are MDX files, you can use React components. custom styled components are available for:
code- inline codepre- code blocks- headings, lists, paragraphs
tips
- keep filenames lowercase with hyphens (no spaces)
- titles come from frontmatter, not filenames
- the sidebar auto-generates from the folder structure