diff --git a/_config.yml b/_config.yml
index 5944d04..348c984 100644
--- a/_config.yml
+++ b/_config.yml
@@ -51,26 +51,14 @@ search:
# Supports true or false (default)
button: false
-# Enable or disable support for mermaid diagrams (https://mermaid-js.github.io/mermaid/)
-# Supports true or false (default)
-mermaid_enabled: false
-mermaid:
- # Version of mermaid library
- # Pick an available version from https://cdn.jsdelivr.net/npm/mermaid/
- version: "9.1.3"
- # Configured theme of mermaid diagrams
- # Pick an avaiable theme from https://mermaid-js.github.io/mermaid/#/theming
- theme: "default"
- # Additional configuration available matching pattern as defined in https://mermaid-js.github.io/mermaid/#/./Setup.
- # For example,
- # logLevel: 'fatal',
- # sequence:
- # diagramMarginX: 50
- # actorMargin: 50
- # gantt:
- # barGap: 4
- # topPadding: 50
-
+# To enable support for mermaid diagrams (https://mermaid-js.github.io/mermaid/),
+# uncomment the `mermaid` and `version` keys below
+# mermaid:
+# # Version of mermaid library
+# # Pick an available version from https://cdn.jsdelivr.net/npm/mermaid/
+# version: "9.1.3"
+# # Put any additional configuration, such as setting the theme, in _includes/mermaid_config.js
+# # See also docs/ui-components/code
# Enable or disable heading anchors
heading_anchors: true
diff --git a/_includes/head.html b/_includes/head.html
index 1b4f7b7..ef48ba9 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -30,7 +30,7 @@
{% endif %}
- {% if site.mermaid_enabled != false %}
+ {% if site.mermaid %}
{% endif %}
diff --git a/_includes/mermaid_config.js b/_includes/mermaid_config.js
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/_includes/mermaid_config.js
@@ -0,0 +1 @@
+{}
diff --git a/_includes/mermaid_init.html b/_includes/mermaid_init.html
deleted file mode 100644
index 327dfdf..0000000
--- a/_includes/mermaid_init.html
+++ /dev/null
@@ -1,58 +0,0 @@
-
diff --git a/_layouts/default.html b/_layouts/default.html
index a09a2a4..6cebe98 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -215,7 +215,11 @@ layout: table_wrappers
{% endif %}