Skip to content

Commit 052c939

Browse files
committed
temporarily update schema without toc specs
1 parent a20dd72 commit 052c939

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/content/config.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import { defineCollection } from 'astro:content';
2-
import { i18nSchema } from '@astrojs/starlight/schema';
3-
import { docsSchema } from 'src/schemas/docsSchema';
2+
import { i18nSchema, docsSchema } from '@astrojs/starlight/schema';
3+
// TODO fix docsSchema usage
4+
// import { docsSchema } from 'src/schemas/docsSchema';
5+
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders';
6+
import { blogSchema } from 'starlight-blog/schema';
47

58
export const collections = {
69
docs: defineCollection({
7-
schema: docsSchema,
10+
loader: docsLoader(),
11+
schema: docsSchema({
12+
extend: (context) => blogSchema(context),
13+
}),
814
}),
9-
i18n: defineCollection({ type: 'data', schema: i18nSchema() }),
15+
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
1016
};

0 commit comments

Comments
 (0)