Site Configuration

Everything in null docs is configured through a single site.yaml file at the project root.

Site metadata

site:
  name: "My Docs"
  tagline: "Documentation for my project"
  logo: "/logo.svg"
  favicon: "/favicon.ico"
  url: "https://docs.example.com"
  repo: "https://github.com/user/repo"
FieldRequiredDescription
nameYesSite name shown in navigation
taglineYesShort description for SEO
logoYesPath to logo image (placed in public/)
faviconYesPath to favicon
urlYesProduction URL of your site
repoYesGitHub repository URL

Theme

The theme section controls colors, fonts, and border radius across the entire site.

theme:
  colors:
    primary: "#6366f1"
    secondary: "#ec4899"
    background: "#f8f9fa"
    surface: "#ffffff"
    text: "#0f172a"
    dark:
      background: "#0f172a"
      surface: "#1e293b"
      text: "#f8fafc"
  fonts:
    heading: "Inter"
    body: "Inter"
    code: "JetBrains Mono"
  radius: "lg"

Colors

ColorDescription
primaryBrand color used for buttons, links, and accents
secondarySecondary accent color
backgroundPage background color
surfaceCard and panel background color
textPrimary text color
dark.*Override colors for dark mode

Fonts

All three font fields accept any Google Fonts family name. The fonts are loaded automatically.

FontDescription
headingUsed for headings (h1–h6)
bodyUsed for body text
codeUsed for code blocks and inline code

Radius

Controls the border radius for buttons, cards, and inputs.

ValueResult
noneSharp corners (0)
smSlightly rounded (0.125rem)
mdMedium rounded (0.375rem)
lgRounded (0.5rem)
fullFully rounded (9999px)
nav:
  links:
    - label: "Docs"
      href: "/docs"
    - label: "GitHub"
      href: "https://github.com/user/repo"
      external: true

Each link has a label, href, and optional external flag (opens in new tab).

Docs configuration

docs:
  defaultVersion: "v1"
  versions:
    - label: "v1"
      path: "v1"
  search:
    enabled: true
    placeholder: "Search docs..."
  sidebar:
    collapsible: true
  toc:
    minHeading: 2
    maxHeading: 3
FieldDescription
defaultVersionWhich version to show by default
versionsList of available versions (label + content path)
search.enabledEnable/disable the search feature
search.placeholderPlaceholder text for the search input
sidebar.collapsibleAllow sidebar sections to collapse
toc.minHeadingMinimum heading level for table of contents
toc.maxHeadingMaximum heading level for table of contents

Landing page

The landing page is built from an ordered list of sections. See Landing Page for the full section reference.