Getting Started
How content, routing, and the docs UI fit together.
Content
MDX files live in content/docs. Frontmatter needs at least a title:
---
title: My Page
description: Optional description
---
## HelloRouting
Pages are served at /docs/* from app/docs/[[...slug]]/page.tsx. The page tree comes from lib/source.ts.
Component preview
Live examples use ComponentPreview — full content width, roughly a quarter of the viewport tall:
<ComponentPreview title="Button">
<Button>Click me</Button>
</ComponentPreview>Installation commands
CLI blocks use CliCommand — colored package manager logo on the left, dropdown on the right:
<CliCommand command="shadcn@latest add button" />pnpm dlx shadcn@latest add buttonCustomizing the UI
| Piece | Where to edit |
|---|---|
| Site title / nav links | lib/layout.shared.tsx |
| Docs sidebar layout | app/docs/layout.tsx |
| Page title, TOC, body | app/docs/[[...slug]]/page.tsx |
| MDX component map | components/mdx.tsx |
| Shadcn sidebar kit | components/ui/sidebar.tsx |