diff --git a/src/content/config.ts b/src/content/config.ts index 8a75d25..77f04ce 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -1,9 +1,11 @@ import { defineCollection } from 'astro:content'; +import { docsLoader } from '@astrojs/starlight/loaders'; import { docsSchema } from '@astrojs/starlight/schema'; import { blogSchema } from 'starlight-blog/schema' export const collections = { docs: defineCollection({ + loader: docsLoader(), schema: docsSchema({ extend: (context) => blogSchema(context) })