llm_log_frontend/src/content.config.ts

12 lines
327 B
TypeScript

import { defineCollection, z } from 'astro:content';
import { glob } from 'astro/loaders';
const docs = defineCollection({
loader: glob({ pattern: "**/*.{md,mdx}", base: "./src/content/docs" }),
schema: z.object({
title: z.string(),
description: z.string().optional()
})
});
export const collections = { docs };