Themes
@theholocron/themes is a monorepo of shared documentation tooling for Starlight-based docs sites across the @theholocron organization.
Packages
Section titled “Packages”| Package | Description |
|---|---|
@theholocron/docs-theme |
Starlight plugin, createDocsCollections helper, and createDocsLoader for advanced use |
Install
Section titled “Install”pnpm add @theholocron/docs-themePlugin
Section titled “Plugin”Add the theme plugin to your astro.config.ts:
import { docsTheme } from "@theholocron/docs-theme";import starlight from "@astrojs/starlight";import { defineConfig } from "astro/config";
export default defineConfig({ integrations: [ starlight({ plugins: [docsTheme()], }), ],});Content collections
Section titled “Content collections”Use createDocsCollections in content.config.ts to wire up the standard Starlight docs loader:
import { createDocsCollections } from "@theholocron/docs-theme/content";
export const collections = createDocsCollections();For advanced cases (multiple sources, npm content packages), use createDocsLoader from @theholocron/docs-theme/loader directly.