docs: add mermaid diagram support (#15771)

This commit is contained in:
317brian 2024-01-30 11:24:15 -08:00 committed by GitHub
parent ef46d88200
commit 62886e23ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -41,6 +41,9 @@ module.exports={
},
"onBrokenLinks": "log",
"onBrokenMarkdownLinks": "throw",
markdown: {
mermaid: true,
},
"presets": [
[
"@docusaurus/preset-classic",
@ -73,7 +76,8 @@ module.exports={
"redirects": Redirects
}
],
"docusaurus-lunr-search"
"docusaurus-lunr-search",
"@docusaurus/theme-mermaid"
],
"themeConfig": {
colorMode: {

View File

@ -31,6 +31,7 @@
"@docusaurus/core": "^2.4.1",
"@docusaurus/plugin-client-redirects": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@docusaurus/theme-mermaid": "^2.4.1",
"clsx": "^1.1.1",
"docusaurus-lunr-search": "^3.3.1",
"fast-glob": "^3.2.2",