Files
open-saas/opensaas-sh/blog/src/content/config.ts
Franjo Mindek 448f3290fc format write
2025-09-18 11:29:50 +02:00

20 lines
599 B
TypeScript

import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
import { defineCollection, z } from "astro:content";
import { blogSchema } from "starlight-blog/schema";
export const collections = {
docs: defineCollection({
schema: docsSchema({
extend: (context) => {
const blogSchemaResult = blogSchema(context);
return z.object({
...blogSchemaResult.shape,
subtitle: z.string().optional(),
hideBannerImage: z.boolean().optional(),
});
},
}),
}),
i18n: defineCollection({ type: "data", schema: i18nSchema() }),
};