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 GitHub
parent 6d98b33c56
commit 50f92afb69

View File

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