Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/tiny-docs. quick setup, simple, minimalistic docs for your github project flo-bit.dev/tiny-docs
Something went wrong. Try again.
1234567891011121314151617181920212223import { defineCollection, z } from "astro:content";import { glob } from 'astro/loaders';import { contentRoot } from "../config.server";
export const docsSchema = z.object({ title: z.string().optional(),
description: z.string().optional(),
shortDescription: z.string().optional(),});
const docs = defineCollection({ loader: glob({ pattern: ["docs/**/[^_]*.{md,mdx}", "[Rr][Ee][Aa][Dd][Mm][Ee].{md,mdx}"], base: contentRoot, }), // Type-check frontmatter using a schema schema: docsSchema,});
export const collections = { docs };