1
0
mirror of https://github.com/ZSCNetSupportDept/website.git synced 2026-02-10 12:18:59 +08:00

升级版本,为网站添加Mermaid图表支持

This commit is contained in:
2025-03-23 15:55:49 +08:00
parent ff217a3f34
commit c61c133d7d
3 changed files with 5357 additions and 3055 deletions

View File

@@ -64,9 +64,11 @@ const config = {
],
],
themes: ['@docusaurus/theme-mermaid'],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
//mermaid: {}, // 这里可以先尝试空对象,避免不兼容
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
@@ -167,7 +169,22 @@ const config = {
},
],
// see https://www.docusaurus.cn/docs/api/docusaurus-config#headTags
mermaid: {
theme: {light: 'default', dark: 'neutral'},
options: {
darkMode: true,
background: '#ffffff',
},
},
}),
markdown: {
mermaid: true,
},
};
export default config;