From ef3783ea97f5e9d8f8bf69871fe9c1af10d6c36b Mon Sep 17 00:00:00 2001 From: heytulsiprasad Date: Fri, 13 Feb 2026 09:05:39 +0530 Subject: [PATCH] fix(docs): remove hardcoded Mermaid init blocks that break dark mode Four Mermaid diagrams had `%%{init: { 'theme': 'base', ... }}%%` blocks that forced black text and white backgrounds, overriding Mintlify's native dark mode theming and making the diagrams unreadable. --- docs/concepts/architecture.md | 16 ---------------- docs/gateway/remote-gateway-readme.md | 16 ---------------- docs/gateway/security/index.md | 16 ---------------- docs/start/openclaw.md | 16 ---------------- 4 files changed, 64 deletions(-) diff --git a/docs/concepts/architecture.md b/docs/concepts/architecture.md index 42017ab5e9..24e1fb69f7 100644 --- a/docs/concepts/architecture.md +++ b/docs/concepts/architecture.md @@ -56,22 +56,6 @@ Protocol details: ## Connection lifecycle (single client) ```mermaid -%%{init: { - 'theme': 'base', - 'themeVariables': { - 'primaryColor': '#ffffff', - 'primaryTextColor': '#000000', - 'primaryBorderColor': '#000000', - 'lineColor': '#000000', - 'secondaryColor': '#f9f9fb', - 'tertiaryColor': '#ffffff', - 'clusterBkg': '#f9f9fb', - 'clusterBorder': '#000000', - 'nodeBorder': '#000000', - 'mainBkg': '#ffffff', - 'edgeLabelBackground': '#ffffff' - } -}}%% sequenceDiagram participant Client participant Gateway diff --git a/docs/gateway/remote-gateway-readme.md b/docs/gateway/remote-gateway-readme.md index 8fa9cd1f09..27fbfb6d2a 100644 --- a/docs/gateway/remote-gateway-readme.md +++ b/docs/gateway/remote-gateway-readme.md @@ -11,22 +11,6 @@ OpenClaw.app uses SSH tunneling to connect to a remote gateway. This guide shows ## Overview ```mermaid -%%{init: { - 'theme': 'base', - 'themeVariables': { - 'primaryColor': '#ffffff', - 'primaryTextColor': '#000000', - 'primaryBorderColor': '#000000', - 'lineColor': '#000000', - 'secondaryColor': '#f9f9fb', - 'tertiaryColor': '#ffffff', - 'clusterBkg': '#f9f9fb', - 'clusterBorder': '#000000', - 'nodeBorder': '#000000', - 'mainBkg': '#ffffff', - 'edgeLabelBackground': '#ffffff' - } -}}%% flowchart TB subgraph Client["Client Machine"] direction TB diff --git a/docs/gateway/security/index.md b/docs/gateway/security/index.md index 9ae56fb80e..14a3f17b00 100644 --- a/docs/gateway/security/index.md +++ b/docs/gateway/security/index.md @@ -801,22 +801,6 @@ Commit the updated `.secrets.baseline` once it reflects the intended state. ## The Trust Hierarchy ```mermaid -%%{init: { - 'theme': 'base', - 'themeVariables': { - 'primaryColor': '#ffffff', - 'primaryTextColor': '#000000', - 'primaryBorderColor': '#000000', - 'lineColor': '#000000', - 'secondaryColor': '#f9f9fb', - 'tertiaryColor': '#ffffff', - 'clusterBkg': '#f9f9fb', - 'clusterBorder': '#000000', - 'nodeBorder': '#000000', - 'mainBkg': '#ffffff', - 'edgeLabelBackground': '#ffffff' - } -}}%% flowchart TB A["Owner (Peter)"] -- Full trust --> B["AI (Clawd)"] B -- Trust but verify --> C["Friends in allowlist"] diff --git a/docs/start/openclaw.md b/docs/start/openclaw.md index 874a8d85c8..fec776bb8f 100644 --- a/docs/start/openclaw.md +++ b/docs/start/openclaw.md @@ -34,22 +34,6 @@ Start conservative: You want this: ```mermaid -%%{init: { - 'theme': 'base', - 'themeVariables': { - 'primaryColor': '#ffffff', - 'primaryTextColor': '#000000', - 'primaryBorderColor': '#000000', - 'lineColor': '#000000', - 'secondaryColor': '#f9f9fb', - 'tertiaryColor': '#ffffff', - 'clusterBkg': '#f9f9fb', - 'clusterBorder': '#000000', - 'nodeBorder': '#000000', - 'mainBkg': '#ffffff', - 'edgeLabelBackground': '#ffffff' - } -}}%% flowchart TB A["Your Phone (personal)

Your WhatsApp
+1-555-YOU"] -- message --> B["Second Phone (assistant)

Assistant WA
+1-555-ASSIST"] B -- linked via QR --> C["Your Mac (openclaw)

Pi agent"]