-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource.config.ts
More file actions
37 lines (35 loc) · 896 Bytes
/
Copy pathsource.config.ts
File metadata and controls
37 lines (35 loc) · 896 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
import { remarkAdmonition, remarkMdxMermaid } from "fumadocs-core/mdx-plugins";
import { defineConfig } from "fumadocs-mdx/config";
import { remarkCodeLanguage } from "./lib/code-language";
import { remarkAccordion } from "./lib/remark-accordion";
export default defineConfig({
mdxOptions: {
rehypeCodeOptions: {
themes: {
light: "catppuccin-latte",
dark: "catppuccin-mocha",
},
addLanguageClass: true,
fallbackLanguage: "plaintext",
},
remarkPlugins: [
remarkAccordion,
remarkCodeLanguage,
[
remarkAdmonition,
{
typeMap: {
caution: "warning",
danger: "error",
info: "info",
note: "info",
tip: "info",
warn: "warning",
warning: "warning",
},
},
],
remarkMdxMermaid,
],
},
});