Installation
Install dependencies and start the local docs site.
Install dependencies:
pnpm installnpm installyarn installbun installStart the development server:
pnpm devnpm run devyarn devbun devBuild the site:
pnpm buildnpm run buildyarn buildbun buildPreview the production build:
pnpm previewnpm run previewyarn previewbun previewHow Dahlia Is Wired
Dahlia automatically reads theme.config.json from the project root:
import { defineConfig } from 'astro/config';import dahlia from '@prosefly/astro-theme-dahlia';
export default defineConfig({ integrations: [dahlia()],});The docs collection is registered in src/content.config.ts:
import { defineCollection } from 'astro:content';import { docsLoader, docsSchema } from '@prosefly/astro-theme-dahlia/content';
const docs = defineCollection({ loader: docsLoader(), schema: docsSchema(),});
export const collections = { docs };Last updated Oct 14, 2026