Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 0e993b6

Browse files
authored
Merge pull request #155 from janhq/chore/enable-mermaid
chore: enable-mermaid
2 parents 831d9ba + 717bcb6 commit 0e993b6

File tree

3 files changed

+334
-2633
lines changed

3 files changed

+334
-2633
lines changed

docs/docusaurus.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ const config = {
3333
defaultLocale: "en",
3434
locales: ["en"],
3535
},
36+
37+
markdown: {
38+
mermaid: true,
39+
},
3640

3741
// Plugins we added
3842
plugins: [
@@ -58,9 +62,6 @@ const config = {
5862
],
5963
],
6064

61-
// Only for react live
62-
themes: ["@docusaurus/theme-live-codeblock"],
63-
6465
// The classic preset will relay each option entry to the respective sub plugin/theme.
6566
presets: [
6667
[
@@ -170,6 +171,8 @@ const config = {
170171
respectPrefersColorScheme: false,
171172
},
172173
}),
174+
// Only for react live
175+
themes: ["@docusaurus/theme-live-codeblock", "@docusaurus/theme-mermaid"],
173176
};
174177

175178
module.exports = config;

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
"@docusaurus/core": "^2.4.3",
1818
"@docusaurus/preset-classic": "^2.4.3",
1919
"@docusaurus/theme-live-codeblock": "^2.4.3",
20-
"@docusaurus/theme-mermaid": "^3.0.0",
20+
"@docusaurus/theme-mermaid": "^2.4.3",
2121
"@headlessui/react": "^1.7.17",
2222
"@heroicons/react": "^2.0.18",
2323
"@mdx-js/react": "^1.6.22",
2424
"autoprefixer": "^10.4.16",
2525
"axios": "^1.5.1",
2626
"clsx": "^1.2.1",
27+
"@docusaurus/plugin-content-docs": "2.4.3",
2728
"docusaurus-plugin-redoc": "^2.0.0",
2829
"docusaurus-plugin-sass": "^0.2.5",
2930
"docusaurus-theme-redoc": "^2.0.0",

0 commit comments

Comments
 (0)