DocsConfigInput
Defined in: index.ts:31
Everything defineConfig needs to build the Astro config for a Starlight docs site.
Properties
Section titled “Properties”
optionalbase?: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
Section titled “docsTheme”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.
Returns
Section titled “Returns”StarlightPlugin
outDir?
Section titled “outDir?”
optionaloutDir?:string
Defined in: index.ts:43
Astro’s outDir, the build output folder. Omitted from the config when unset, so Astro’s default applies.
plugins?
Section titled “plugins?”
optionalplugins?:StarlightPluginUserConfig[]
Defined in: index.ts:39
Further Starlight plugins, added after the docs theme (for example the ones apiReference() returns).
publicDir?
Section titled “publicDir?”
optionalpublicDir?: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.
optionalsite?:string
Defined in: index.ts:49
The site’s absolute origin (for example https://docs.theholocron.dev). Starlight needs it to generate a sitemap.
srcDir?
Section titled “srcDir?”
optionalsrcDir?:string
Defined in: index.ts:41
Astro’s srcDir. Omitted from the config when unset, so Astro’s default (./src) applies.
starlight
Section titled “starlight”starlight: (
userOpts) =>AstroIntegration
Defined in: index.ts:35
The starlight integration, imported by the site’s own config so Astro’s loader handles it.
Parameters
Section titled “Parameters”userOpts
Section titled “userOpts”StarlightUserConfigWithPlugins
Returns
Section titled “Returns”AstroIntegration