Skip to content

Commit adcf9b3

Browse files
committed
pref: 删除mermaid插件以优化首屏性能
1 parent ec6d6b3 commit adcf9b3

3 files changed

Lines changed: 3 additions & 958 deletions

File tree

.vitepress/config.mts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { defineConfig } from 'vitepress';
2-
import { withMermaid } from 'vitepress-plugin-mermaid';
32
import { generateIndex } from '../utils/posts-loader.mjs';
43
// https://vitepress.dev/reference/site-config
54

6-
export default withMermaid(defineConfig({
5+
export default defineConfig({
76
title: "Trudbot's Blog",
87
description: "trudbot的博客",
98
head: [
@@ -67,16 +66,8 @@ export default withMermaid(defineConfig({
6766
]
6867
}
6968
},
70-
// optionally, you can pass MermaidConfig
71-
mermaid: {
72-
// refer https://mermaid.js.org/config/setup/modules/mermaidAPI.html#mermaidapi-configuration-defaults for options
73-
},
74-
// optionally set additional config for plugin itself with MermaidPluginConfig
75-
mermaidPlugin: {
76-
class: "mermaid trudbot-mermaid", // set additional css classes for parent container
77-
},
7869

7970
sitemap: {
8071
hostname: 'https://trudbot.cn'
8172
},
82-
}));
73+
});

0 commit comments

Comments
 (0)