File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11import { 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
58export 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} ;
You can’t perform that action at this time.
0 commit comments