feat: diagrams can be rendered using Mermaid in a code block (#458)

### What this PR does?
添加对 Mermaid Diagrams 的支持

```release-note
None
```
This commit is contained in:
guqing
2024-10-31 13:28:51 +08:00
committed by GitHub
parent eac3f93313
commit 0b1d4596d5
3 changed files with 781 additions and 0 deletions

View File

@@ -15,6 +15,10 @@ const config = {
},
organizationName: "halo-dev", // Usually your GitHub org/user name.
projectName: "halo", // Usually your repo name.
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
presets: [
[

View File

@@ -33,6 +33,7 @@
"@docusaurus/preset-classic": "3.4.0",
"@docusaurus/theme-classic": "3.4.0",
"@docusaurus/theme-common": "3.4.0",
"@docusaurus/theme-mermaid": "3.4.0",
"@mdx-js/react": "^3.0.0",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.2.1",

776
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff