Getting started
Installation
Add Mines to a new or existing Astro project.
Install the package
pnpm add @deltaq.dev/minesnpm install @deltaq.dev/minesyarn add @deltaq.dev/minesRegister the integration
import { defineConfig } from 'astro/config';
import mines from '@deltaq.dev/mines';
export default defineConfig({
integrations: [mines({ title: 'My Docs' })],
});Define the content collection
import { defineCollection } from 'astro:content';
import { docsLoader, docsSchema } from '@deltaq.dev/mines/loader';
export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
};Write your first page
---
title: Introduction
description: Welcome to my docs.
---
Hello world.