Esc

    Install the package

    pnpm
    pnpm add @deltaq.dev/mines
    npm
    npm install @deltaq.dev/mines
    yarn
    yarn add @deltaq.dev/mines

    Register the integration

    astro.config.mjs
    import { defineConfig } from 'astro/config';
    import mines from '@deltaq.dev/mines';
    
    export default defineConfig({
      integrations: [mines({ title: 'My Docs' })],
    });

    Define the content collection

    src/content.config.ts
    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

    src/content/docs/1.getting-started/1.introduction.mdx
    ---
    title: Introduction
    description: Welcome to my docs.
    ---
    
    Hello world.