docs-site/astro-config
The Astro + Starlight configuration every documentation site is built with.
A site’s own astro.config.ts is one call, export default defineDocsSiteConfig({ repo, title }): the base path, the edit and GitHub links, the sidebar, the shared components and stylesheet, the Open Graph metadata and the Markdown plugins all follow from the repository’s name.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| defineDocsSiteConfig | Builds a documentation site’s Astro configuration. The site’s source lives under <docs>/src (srcDir), so it never collides with the package’s own src/ and dist/. The API reference is generated into <docs>/src/content/docs/api with a matching <docs>/src/generated-sidebar.json, which this reads; run the generator first. |