Skip to content
Snippets Groups Projects
content.config.ts 368 B
Newer Older
  • Learn to ignore specific revisions
  • import { defineCollection } from "astro:content";
    import { docsLoader, i18nLoader } from "@astrojs/starlight/loaders";
    import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
    
    export const collections = {
      docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
      i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
    };