Skip to content

Commit 0b7b50b

Browse files
committed
build(mermaid): enable Docusaurus mermaid diagram rendering
Install and register @docusaurus/theme-mermaid and set markdown.mermaid so fenced mermaid code blocks render as diagrams instead of plain code. The Hierarchical Queue guide added in this branch, along with the existing scheduler and performance guides, rely on these diagrams. Pin the theme to 3.10.1 to match the Docusaurus core version so a single @docusaurus/theme-common instance is used. A mixed version tree produces duplicate ColorModeProvider contexts and breaks static site generation. Signed-off-by: Hajnal Máté <hajnalmt@gmail.com>
1 parent 56004d9 commit 0b7b50b

3 files changed

Lines changed: 1251 additions & 131 deletions

File tree

docusaurus.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,14 @@ const config = {
4747
onBrokenLinks: "throw",
4848
markdown: {
4949
format: "detect",
50+
mermaid: true,
5051
hooks: {
5152
onBrokenMarkdownLinks: "throw",
5253
},
5354
},
5455

56+
themes: ["@docusaurus/theme-mermaid"],
57+
5558
i18n: {
5659
defaultLocale: "en",
5760
locales: ["en", "zh-Hans"],

0 commit comments

Comments
 (0)