[READ-ONLY] Mirror of https://github.com/flo-bit/dogumentation. Simple, minimalistic documentation template using astro flo-bit.dev/dogumentation/
0

Configure Feed

Select the types of activity you want to include in your feed.

dogumentation / src / content.config.ts
946 B 33 lines
1import { defineCollection, z } from "astro:content"; 2import { glob } from 'astro/loaders'; 3 4const docs = defineCollection({ 5 loader: glob({ pattern: '**/[^_]*.{md,mdx}', base: "./src/content/docs/" }), 6 // Type-check frontmatter using a schema 7 schema: z.object({ 8 // title of the blog post, don't repeat this in the markdown part 9 title: z.string(), 10 11 // will be shown in the blog post list 12 description: z.string(), 13 14 order: z.number().optional(), 15 16 category: z.string().optional(), 17 18 categoryOrder: z.number().optional(), 19 20 // short description will be used for og image (fallback to description) 21 shortDescription: z.string().optional(), 22 23 // array of tags 24 tags: z.array(z.string()).optional(), 25 26 customOGImage: z.string().optional(), 27 28 // wether to show title and short description in the og image 29 noTextInOGImage: z.boolean().optional(), 30 }), 31}); 32 33export const collections = { docs };