Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/native. An initiative which aims to make it easy to create complex, light-weight, and perfor okikio.github.io/native
Something went wrong. Try again.
123456789101112131415161718import { defineCollection } from "astro:content";import { glob } from "astro/loaders";import { z } from "astro/zod";
const docs = defineCollection({ loader: glob({ base: "./src/content", pattern: "**/*.md", generateId: ({ entry }) => entry.replaceAll("\\", "/"), }), schema: z.object({ title: z.string().optional(), description: z.string().optional(), }),});
export const collections = { docs };