Skip to content

Themes

@theholocron/themes is a monorepo of shared documentation tooling for Starlight-based docs sites across the @theholocron organization.

Package Description
@theholocron/docs-theme Starlight plugin, createDocsCollections helper, and createDocsLoader for advanced use
Terminal window
pnpm add @theholocron/docs-theme

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()],
}),
],
});

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.