Skip to content

Default docs layout

This page sets no pageLayout (and no template) frontmatter at all, so every override on this site falls through to Starlight’s own default rendering: left navigation sidebar, right-hand table of contents, standard content width.

Use it as the baseline to compare against the other demos:

  • Splash — Starlight’s own built-in full-width template.
  • Full-width — keeps the left sidebar, drops the TOC.
  • Minimal — drops both sidebar and TOC.
  • With aside — keeps everything, adds an extra panel.
  • Dashboard — keeps the left sidebar, drops the TOC, fills the reclaimed width with a widget grid.

Padding this out with a few headings makes the table of contents on the right actually show something to compare against the other layouts.

Regular paragraph text, same as any other Starlight docs page.

// Even code blocks render exactly as they normally would.
console.log('nothing about this page is customized');

Nothing on this page reads Astro.locals.starlightRoute.entry.data.pageLayout and gets anything other than undefined back — which is exactly the point.