Skip to content

Commit

Permalink
Merge pull request #155 from janhq/chore/enable-mermaid
Browse files Browse the repository at this point in the history
chore: enable-mermaid
  • Loading branch information
tikikun authored Nov 21, 2023
2 parents 831d9ba + 717bcb6 commit 0e993b6
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 2,633 deletions.
9 changes: 6 additions & 3 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,9 +62,6 @@ const config = {
],
],

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

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

module.exports = config;
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
"@docusaurus/core": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
"@docusaurus/theme-live-codeblock": "^2.4.3",
"@docusaurus/theme-mermaid": "^3.0.0",
"@docusaurus/theme-mermaid": "^2.4.3",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@mdx-js/react": "^1.6.22",
"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
Loading

0 comments on commit 0e993b6

Please sign in to comment.