Skip to content

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.

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
    • Directoryguides
      • authoring-content.mdx
      • Directorydeployment
        • build.mdx /guides/deployment/build/
    • Directoryreference/

Every page starts with a YAML frontmatter block. title is required; the rest is optional:

src/content/docs/guides/example.md
---
title: Example page
description: 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.

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:

:::tip
This is a tip.
:::

Code blocks are styled with Fira Code and support titles, line highlighting, and diff markers via Expressive Code (bundled with Starlight):

astro.config.mjs
starlight({
title: 'My Pack',
plugins: [nebari()],
// sidebar: legacyConfig,
sidebar: newConfig,
});

Group related commands with tabs so readers see only their package manager:

Terminal window
npm run build

Wrap an ordered list in <Steps> for a visually distinct walkthrough:

  1. Write the page under src/content/docs/.

  2. Add it to the sidebar in astro.config.mjs.

  3. Run npm run dev and check it renders.

Use <Badge> inline to flag status: New, Beta, or Deprecated. Variants are note, tip, caution, danger, success, and default.

Use root-relative links so they keep working under a base path:

See the [configuration reference](/reference/configuration/).