Files
mist-website/source.config.ts
T
2026-05-11 08:53:07 +02:00

39 lines
813 B
TypeScript

import {
defineCollections,
defineConfig,
defineDocs,
} from "fumadocs-mdx/config";
import { metaSchema, pageSchema } from "fumadocs-core/source/schema";
import { z } from "zod";
// You can customize Zod schemas for frontmatter and `meta.json` here
// see https://fumadocs.dev/docs/mdx/collections
export const docs = defineDocs({
dir: "content/docs",
docs: {
schema: pageSchema,
postprocess: {
includeProcessedMarkdown: true,
},
},
meta: {
schema: metaSchema,
},
});
export const blogPosts = defineCollections({
type: "doc",
dir: "content/blog",
// add required frontmatter properties
schema: pageSchema.extend({
author: z.string(),
date: z.string().date().or(z.date()),
}),
});
export default defineConfig({
mdxOptions: {
// MDX options
},
});