Files
angular-challenges/docs/src/content/config.ts
2023-10-13 22:58:07 +02:00

14 lines
418 B
TypeScript

import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
import { defineCollection, z } from 'astro:content';
export const collections = {
docs: defineCollection({
schema: (ctx) =>
docsSchema()(ctx).extend({
// Add a new optional field to the schema.
noCommentSection: z.boolean().optional(),
}),
}),
i18n: defineCollection({ type: 'data', schema: i18nSchema() }),
};