Skip to content

Commit e700238

Browse files
authored
Fix diagram rendering (#137)
1 parent 99aedfc commit e700238

File tree

3 files changed

+1846
-702
lines changed

3 files changed

+1846
-702
lines changed

docusaurus.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ const config: Config = {
5151
],
5252
],
5353

54+
markdown: {
55+
mermaid: true,
56+
},
57+
themes: ['@docusaurus/theme-mermaid'],
58+
5459
themeConfig: {
5560
// Replace with your project's social card
5661
image: "img/new_logo_yellow.svg",
@@ -154,6 +159,9 @@ const config: Config = {
154159
darkTheme: darkCodeTheme,
155160
additionalLanguages: ["rust", "toml"],
156161
},
162+
mermaid: {
163+
theme: { light: 'dark', dark: 'dark' },
164+
},
157165
} satisfies Preset.ThemeConfig,
158166
plugins: [
159167
function custom() {

0 commit comments

Comments
 (0)