Skip to content

Commit 2f21975

Browse files
claudeHeyItsGilbert
authored andcommitted
Add mermaid diagram support to documentation
Installed and configured @docusaurus/theme-mermaid to enable mermaid diagrams in markdown files: - Added @docusaurus/[email protected] (matching core version) - Configured markdown.mermaid: true in docusaurus.config.ts - Added mermaid theme to themes array This enables the sequence diagram in the parameters-properties documentation to render correctly, showing the execution flow and variable lifespan throughout the build process.
1 parent c1e8f1a commit 2f21975

File tree

3 files changed

+939
-6
lines changed

3 files changed

+939
-6
lines changed

docusaurus.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ const config: Config = {
3030
locales: ['en'],
3131
},
3232

33+
// Enable mermaid diagrams in markdown
34+
markdown: {
35+
mermaid: true,
36+
},
37+
38+
themes: ['@docusaurus/theme-mermaid'],
39+
3340
presets: [
3441
[
3542
'classic',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"dependencies": {
1818
"@docusaurus/core": "^3.8.1",
1919
"@docusaurus/preset-classic": "^3.8.1",
20+
"@docusaurus/theme-mermaid": "3.8.1",
2021
"@mdx-js/react": "^3.0.0",
2122
"@signalwire/docusaurus-plugin-llms-txt": "^1.2.2",
2223
"clsx": "^2.0.0",

0 commit comments

Comments
 (0)