# Installation

Install dependencies and start the local docs site.

Install dependencies:

```sh
pnpm install
```

Start the development server:

```sh
pnpm dev
```

Build the site:

```sh
pnpm build
```

Preview the production build:

```sh
pnpm preview
```

## How Lotus Is Wired

Lotus automatically reads `theme.config.json` from the project root:

```ts title="astro.config.ts"
import { defineConfig } from 'astro/config';
import lotus from '@prosefly/astro-theme-lotus';

export default defineConfig({
  integrations: [lotus()],
});
```

The docs collection is registered in `src/content.config.ts`:

```ts title="src/content.config.ts"
import { defineCollection } from 'astro:content';
import { docsLoader, docsSchema } from '@prosefly/astro-theme-lotus/content';

const docs = defineCollection({
  loader: docsLoader(),
  schema: docsSchema(),
});

export const collections = { docs };
```
