-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsource.config.ts
More file actions
39 lines (36 loc) · 870 Bytes
/
Copy pathsource.config.ts
File metadata and controls
39 lines (36 loc) · 870 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
35
36
37
38
39
import { defineConfig, defineDocs } from "fumadocs-mdx/config";
import { pageSchema } from "fumadocs-core/source/schema";
import rehypePrettyCode from "rehype-pretty-code";
import z from "zod";
export const docs = defineDocs({
dir: "content/docs",
docs: {
schema: pageSchema.extend({
image: z.string().optional(),
links: z
.object({
github: z.string().url().optional(),
doc: z.string().url().optional(),
api: z.string().url().optional(),
})
.optional(),
}),
},
});
export default defineConfig({
mdxOptions: {
rehypePlugins: (plugins) => {
plugins.push([
rehypePrettyCode,
{
theme: {
light: "github-light",
dark: "vesper",
},
defaultColor: false,
},
]);
return plugins;
},
},
});