mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-23 04:20:21 +01:00
20 lines
599 B
TypeScript
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() }),
|
|
};
|