diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 55da0bae2..fcbe0b861 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -22,6 +22,11 @@ const config = { plugins: ['tailwindcss-loader'], + markdown: { + mermaid: true, + }, + themes: ['@docusaurus/theme-mermaid'], + presets: [ [ 'redocusaurus', @@ -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/', diff --git a/website/package.json b/website/package.json index c6e070962..e73d3a445 100644 --- a/website/package.json +++ b/website/package.json @@ -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", diff --git a/website/yarn.lock b/website/yarn.lock index 1d8c1c69f..6b4d9197a 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -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/theme-search-algolia@2.2.0": version "2.2.0" resolved "https://registry.npmjs.org/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.2.0.tgz" @@ -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==