File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
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' ;
4
7
5
8
export const collections = {
6
9
docs : defineCollection ( {
7
- schema : docsSchema ,
10
+ loader : docsLoader ( ) ,
11
+ schema : docsSchema ( {
12
+ extend : ( context ) => blogSchema ( context ) ,
13
+ } ) ,
8
14
} ) ,
9
- i18n : defineCollection ( { type : 'data' , schema : i18nSchema ( ) } ) ,
15
+ i18n : defineCollection ( { loader : i18nLoader ( ) , schema : i18nSchema ( ) } ) ,
10
16
} ;
You can’t perform that action at this time.
0 commit comments