-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathsource.config.ts
More file actions
34 lines (32 loc) · 723 Bytes
/
source.config.ts
File metadata and controls
34 lines (32 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import {
defineConfig,
defineDocs,
frontmatterSchema,
} from "fumadocs-mdx/config";
import { z } from "zod";
export const docs = defineDocs({
dir: "content",
docs: {
schema: frontmatterSchema.extend({
date: z.iso.date(),
description: z.string(),
author: z.string(),
coauthors: z.array(z.string()).optional(),
icon: z.enum(["writing", "code", "motion"]).optional().default("writing"),
}),
},
meta: {},
});
export default defineConfig({
mdxOptions: {
providerImportSource: "@/mdx-components",
remarkPlugins: [],
rehypePlugins: [],
rehypeCodeOptions: {
themes: {
light: "github-light",
dark: "github-dark",
},
},
},
});