Skip to content

Commit c363f8b

Browse files
authored
feat: add mermaid for markdown (#986)
1 parent f515ab1 commit c363f8b

File tree

3 files changed

+706
-9
lines changed

3 files changed

+706
-9
lines changed

docusaurus.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,20 @@ const config: Config = {
209209
},
210210
],
211211
],
212+
themes: ['@docusaurus/theme-mermaid'],
213+
markdown: {
214+
mermaid: true,
215+
},
212216
themeConfig: {
213217
// Replace with your project's social card
214218
image: "img/logo/logo-no-text.png",
215219
algolia,
216220
imageZoom: {
217221
selector: "article :not(a) > img",
218222
},
223+
mermaid: {
224+
theme: { dark: 'dark' }
225+
},
219226
announcementBar: {
220227
id: "announcementBar-2", // Increment on change
221228
content: `⭐️ If you like Databend, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/datafuselabs/databend">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/DatabendLabs" >Twitter</a> ${TwitterSvg}`,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@ant-design/icons": "^5.3.7",
2727
"@docusaurus/core": "3.4.0",
2828
"@docusaurus/preset-classic": "3.4.0",
29+
"@docusaurus/theme-mermaid": "^3.4.0",
2930
"@mdx-js/react": "^3.0.0",
3031
"ahooks": "^3.8.0",
3132
"antd": "^5.19.2",

0 commit comments

Comments
 (0)