Type to search documentation.

Installation

Install dependencies and start the local docs site.

Install dependencies:

pnpm install

Start the development server:

pnpm dev

Build the site:

pnpm build

Preview the production build:

pnpm preview

How Dahlia Is Wired

Dahlia automatically reads theme.config.json from the project root:

astro.config.ts
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:

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