docs(config): Add mermaid diagram support (#10357)

# Which Problems Are Solved

#7573

# How the Problems Are Solved

Enabled mermaid support in the current version:
https://docusaurus.io/docs/next/markdown-features/diagrams

# Additional Changes


# Additional Context

test by adding to a page: 

```mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```
This commit is contained in:
Maximilian
2025-07-30 12:28:51 +02:00
committed by Stefan Benz
parent 17e68d40cf
commit dd35983dca

View File

@@ -23,6 +23,7 @@ module.exports = {
description: description:
"Documentation for ZITADEL - Identity infrastructure, simplified for you.", "Documentation for ZITADEL - Identity infrastructure, simplified for you.",
}, },
themeConfig: { themeConfig: {
metadata: [ metadata: [
{ {
@@ -450,9 +451,13 @@ module.exports = {
}; };
}, },
], ],
markdown: {
mermaid:true,
},
themes: [ themes: [
"docusaurus-theme-github-codeblock", "docusaurus-theme-github-codeblock",
"docusaurus-theme-openapi-docs", "docusaurus-theme-openapi-docs",
'@docusaurus/theme-mermaid',
], ],
future: { future: {
v4: false, // Disabled because of some problems related to https://github.com/facebook/docusaurus/issues/11040 v4: false, // Disabled because of some problems related to https://github.com/facebook/docusaurus/issues/11040