mirror of
https://github.com/trycua/computer.git
synced 2025-12-31 10:29:59 -06:00
27 lines
712 B
TypeScript
27 lines
712 B
TypeScript
import { defineConfig, defineDocs, frontmatterSchema, metaSchema } from 'fumadocs-mdx/config';
|
|
import { z } from 'zod';
|
|
|
|
// You can customise Zod schemas for frontmatter and `meta.json` here
|
|
// see https://fumadocs.vercel.app/docs/mdx/collections#define-docs
|
|
export const docs = defineDocs({
|
|
docs: {
|
|
schema: frontmatterSchema.extend({
|
|
pypi: z.string().optional(),
|
|
npm: z.string().optional(),
|
|
github: z.array(z.string()).optional(),
|
|
macos: z.boolean().default(false),
|
|
windows: z.boolean().default(false),
|
|
linux: z.boolean().default(false),
|
|
}),
|
|
},
|
|
meta: {
|
|
schema: metaSchema,
|
|
},
|
|
});
|
|
|
|
export default defineConfig({
|
|
mdxOptions: {
|
|
// MDX options
|
|
},
|
|
});
|