mirror of
https://github.com/trycua/computer.git
synced 2026-01-01 02:50:15 -06:00
32 lines
721 B
TypeScript
32 lines
721 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
|
|
},
|
|
});
|