Skip to content

Commit

Permalink
Enable mermaid official
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jan 8, 2023
1 parent 34366b4 commit 9d3d11b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
6 changes: 5 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const config = {

plugins: ['tailwindcss-loader'],

markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],

presets: [
[
'redocusaurus',
Expand All @@ -45,7 +50,6 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
//remarkPlugins: [require('mdx-mermaid')],
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/distribworks/dkron/tree/main/website/docs/',
Expand Down
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"dependencies": {
"@docusaurus/core": "^2.2.0",
"@docusaurus/preset-classic": "^2.2.0",
"@docusaurus/theme-mermaid": "^2.2.0",
"@heroicons/react": "^1.0.5",
"@mdx-js/react": "^1.6.21",
"autoprefixer": "^10.4.2",
Expand Down
16 changes: 15 additions & 1 deletion website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,20 @@
tslib "^2.4.0"
utility-types "^3.10.0"

"@docusaurus/theme-mermaid@^2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@docusaurus/theme-mermaid/-/theme-mermaid-2.2.0.tgz#0dc9bb7013c0280726a0c7a26419b1f5e79755f3"
integrity sha512-rEhVvWyZ9j9eABTvJ8nhfB5NbyiThva3U9J7iu4RxKYymjImEh9MiqbEdOrZusq6AQevbkoHB7n+9VsfmS55kg==
dependencies:
"@docusaurus/core" "2.2.0"
"@docusaurus/module-type-aliases" "2.2.0"
"@docusaurus/theme-common" "2.2.0"
"@docusaurus/types" "2.2.0"
"@docusaurus/utils-validation" "2.2.0"
"@mdx-js/react" "^1.6.22"
mermaid "^9.1.1"
tslib "^2.4.0"

"@docusaurus/[email protected]":
version "2.2.0"
resolved "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.2.0.tgz"
Expand Down Expand Up @@ -6191,7 +6205,7 @@ merge2@^1.3.0, merge2@^1.4.1:
resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz"
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==

mermaid@^9.3.0:
mermaid@^9.1.1, mermaid@^9.3.0:
version "9.3.0"
resolved "https://registry.yarnpkg.com/mermaid/-/mermaid-9.3.0.tgz#8bd7c4a44b53e4e85c53a0a474442e9c273494ae"
integrity sha512-mGl0BM19TD/HbU/LmlaZbjBi//tojelg8P/mxD6pPZTAYaI+VawcyBdqRsoUHSc7j71PrMdJ3HBadoQNdvP5cg==
Expand Down

0 comments on commit 9d3d11b

Please sign in to comment.