Authoring Content
Writing docs with this theme is mostly writing Markdown. This guide covers the
project layout, page frontmatter, and the built-in components you’ll reach for
most. Everything here works in .md files except the components, which require
.mdx.
Where content lives
Section titled “Where content lives”All pages live under src/content/docs/. The path of a file becomes its URL, so
organize directories to match your sidebar groups:
Directorysrc/content/docs
- index.mdx
/— your landing page Directorygetting-started
- installation.mdx
/getting-started/installation/ - quickstart.mdx
- installation.mdx
Directoryguides
- authoring-content.mdx
Directorydeployment
- build.mdx
/guides/deployment/build/
- build.mdx
Directoryreference/
- …
- index.mdx
Page frontmatter
Section titled “Page frontmatter”Every page starts with a YAML frontmatter block. title is required; the rest is
optional:
---title: Example pagedescription: Shown in search results and social cards.sidebar: order: 2 # control position within its group badge: New # a badge next to the sidebar label---
Your content starts here.Callouts (asides)
Section titled “Callouts (asides)”Use asides to pull the reader’s attention aside without breaking the flow. The theme maps their colors to Nebari’s feedback tokens.
The syntax is a fenced block with the variant name:
:::tipThis is a tip.:::Code blocks
Section titled “Code blocks”Code blocks are styled with Fira Code and support titles, line highlighting, and diff markers via Expressive Code (bundled with Starlight):
starlight({ title: 'My Pack', plugins: [nebari()], // sidebar: legacyConfig, sidebar: newConfig,});Group related commands with tabs so readers see only their package manager:
npm run buildbun run buildNumbered procedures
Section titled “Numbered procedures”Wrap an ordered list in <Steps> for a visually distinct walkthrough:
-
Write the page under
src/content/docs/. -
Add it to the
sidebarinastro.config.mjs. -
Run
npm run devand check it renders.
Badges
Section titled “Badges”Use <Badge> inline to flag status: New,
Beta, or Deprecated. Variants are note, tip, caution, danger, success,
and default.
Linking between pages
Section titled “Linking between pages”Use root-relative links so they keep working under a base path:
See the [configuration reference](/reference/configuration/).- Customizing the Theme — colors, logo, and overrides.
- Components reference — every component and its props.