Skip to content

DocsConfigInput

Defined in: index.ts:31

Everything defineConfig needs to build the Astro config for a Starlight docs site.

optional base?: string

Defined in: index.ts:47

Astro’s base, the path the site is served under. Defaults to /<docs.github>.


docs: DocsConfig

Defined in: index.ts:33

The docs site’s name, repo and sidebar.


docsTheme: () => StarlightPlugin

Defined in: index.ts:37

The docsTheme Starlight plugin from @theholocron/docs-theme, imported by the site’s own config.

A Starlight plugin that puts the theme’s stylesheet ahead of the site’s own custom CSS.

StarlightPlugin


optional outDir?: string

Defined in: index.ts:43

Astro’s outDir, the build output folder. Omitted from the config when unset, so Astro’s default applies.


optional plugins?: StarlightPluginUserConfig[]

Defined in: index.ts:39

Further Starlight plugins, added after the docs theme (for example the ones apiReference() returns).


optional publicDir?: string

Defined in: index.ts:45

Astro’s publicDir, the folder of static assets. Omitted from the config when unset, so Astro’s default applies.


optional site?: string

Defined in: index.ts:49

The site’s absolute origin (for example https://docs.theholocron.dev). Starlight needs it to generate a sitemap.


optional srcDir?: string

Defined in: index.ts:41

Astro’s srcDir. Omitted from the config when unset, so Astro’s default (./src) applies.


starlight: (userOpts) => AstroIntegration

Defined in: index.ts:35

The starlight integration, imported by the site’s own config so Astro’s loader handles it.

StarlightUserConfigWithPlugins

AstroIntegration