Skip to content

Commit

Permalink
chore/add-mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHieu01 committed Nov 21, 2023
1 parent 147c32d commit 411816a
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 145 deletions.
9 changes: 7 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ const config = {
defaultLocale: "en",
locales: ["en"],
},

markdown: {
mermaid: true,
},

// Plugins we added
plugins: [
Expand All @@ -58,7 +62,7 @@ const config = {
],
],

themes: ["@docusaurus/theme-live-codeblock"],


// The classic preset will relay each option entry to the respective sub plugin/theme.
presets: [
Expand Down Expand Up @@ -173,6 +177,7 @@ const config = {
respectPrefersColorScheme: false,
},
},
themes: ["@docusaurus/theme-live-codeblock", "@docusaurus/theme-mermaid"],
};

module.exports = config;
module.exports = config;
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"autoprefixer": "^10.4.16",
"axios": "^1.5.1",
"clsx": "^1.2.1",
"@docusaurus/plugin-content-docs": "2.4.3",
"docusaurus-plugin-redoc": "^2.0.0",
"docusaurus-plugin-sass": "^0.2.5",
"docusaurus-theme-redoc": "^2.0.0",
Expand Down Expand Up @@ -58,4 +59,4 @@
"engines": {
"node": ">=16.14"
}
}
}
Loading

0 comments on commit 411816a

Please sign in to comment.