CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/astro-starlight

Skills for setting up and customizing Astro Starlight documentation sites, covering project setup, custom theming, and component overrides.

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

configuration-reference.mdskills/starlight-base/references/

Starlight Configuration Reference

Quick-reference for the most commonly used starlight({}) options in astro.config.mjs.

Top-Level Options

OptionTypeDescription
titlestringRequired. Site title shown in header and page titles.
descriptionstringDefault meta description for all pages.
logoLogoConfigHeader logo. See Logo section below.
socialSocialLink[]Social media links in the header.
sidebarSidebarItem[]Sidebar navigation configuration.
editLinkEditLinkConfig"Edit page" link configuration.
customCssstring[]CSS files to inject. Paths relative to project root.
componentsComponentsConfigOverride built-in UI components.
headHeadConfig[]Additional HTML elements to inject into <head>.
faviconstringPath to favicon (relative to public/).
tableOfContentsTableOfContentsConfig | falseGlobal TOC configuration.
lastUpdatedbooleanShow last-updated date on pages.
paginationbooleanShow previous/next page links.
defaultLocalestringDefault locale for i18n.

Logo Options

type LogoConfig =
  | { src: string; replacesTitle?: boolean; alt?: string }
  | { light: string; dark: string; replacesTitle?: boolean; alt?: string }

src and light/dark are mutually exclusive.

Sidebar Item Types

type SidebarItem =
  | { label: string; slug: string }                              // Single link
  | { label: string; items: SidebarItem[]; collapsed?: boolean } // Group with explicit items
  | { label: string; autogenerate: { directory: string }; collapsed?: boolean } // Auto group

A group cannot have both items and autogenerate.

Social Link Icons

Full list from Starlight Icons Reference: github, gitlab, discord, twitter, mastodon, linkedin, youtube, rss, email, external, seti, x.com

defineConfig Options (not in starlight({}))

OptionDescription
siteCanonical URL — required for sitemap generation
baseBase path for deployment to a subdirectory

Project Structure

my-docs/
├── astro.config.mjs       # Starlight integration config
├── src/
│   ├── assets/            # Images, logos
│   ├── content/docs/      # All documentation pages (.md / .mdx)
│   │   ├── index.md       # Homepage (route: /)
│   │   └── guides/example.md   # Route: /guides/example/
│   └── styles/            # Optional custom CSS
└── public/                # Static assets served as-is

Upgrading

npx @astrojs/upgrade

skills

starlight-base

evals.md

SKILL.md

tile.json