Skip to content

Commit 0b1d459

Browse files
authored
feat: diagrams can be rendered using Mermaid in a code block (#458)
### What this PR does? 添加对 Mermaid Diagrams 的支持 ```release-note None ```
1 parent eac3f93 commit 0b1d459

File tree

3 files changed

+781
-0
lines changed

3 files changed

+781
-0
lines changed

docusaurus.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ const config = {
1515
},
1616
organizationName: "halo-dev", // Usually your GitHub org/user name.
1717
projectName: "halo", // Usually your repo name.
18+
markdown: {
19+
mermaid: true,
20+
},
21+
themes: ['@docusaurus/theme-mermaid'],
1822

1923
presets: [
2024
[

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"@docusaurus/preset-classic": "3.4.0",
3434
"@docusaurus/theme-classic": "3.4.0",
3535
"@docusaurus/theme-common": "3.4.0",
36+
"@docusaurus/theme-mermaid": "3.4.0",
3637
"@mdx-js/react": "^3.0.0",
3738
"@svgr/webpack": "^5.5.0",
3839
"clsx": "^1.2.1",

0 commit comments

Comments
 (0)