1
0

项目:添加 mermaid 语法

This commit is contained in:
周中平 2023-04-19 14:40:47 +08:00
parent 35b3b3c7dd
commit 4732442cd8
No known key found for this signature in database
GPG Key ID: B1DF9DD42D8E00DC
3 changed files with 1067 additions and 0 deletions

View File

@ -450,7 +450,14 @@ const config = {
defaultLanguage: "markdown",
additionalLanguages: ["java", "git","nginx","http"],
},
mermaid: {
theme: {light: 'neutral', dark: 'forest'},
},
}),
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
};
module.exports = config;

1059
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,7 @@
"dependencies": {
"@docusaurus/core": "^2.4.0",
"@docusaurus/preset-classic": "^2.4.0",
"@docusaurus/theme-mermaid": "^2.4.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"docusaurus-plugin-umami": "^2.0.0",