From 3b0cdca567273ff0c98a77dfe4d46f0ca53d3366 Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Sun, 15 Mar 2026 21:10:07 -0700 Subject: [PATCH] fix: add mermaid rendering support to Docsify site - Add mermaid@11 library with dark theme configuration - Add custom markdown renderer to convert ```mermaid blocks to
- Add doneEach plugin hook to run mermaid after page navigation - Fix code fence syntax in architecture.md (remove space before 'mermaid') --- docs/architecture.md | 6 +++--- index.html | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/docs/architecture.md b/docs/architecture.md index 3bb5ac4b..c0cceae1 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -10,7 +10,7 @@ Traditional object-oriented design stores data as arrays of objects: `ListReactive Chain] -->|Adds pub/sub overhead| Stream Stream[Streaming Mode
Stateful O1 Updates] -->|Maintains state across| Span @@ -202,7 +202,7 @@ else CalculateScalar(source, output); ``` -``` mermaid +```mermaid graph TD Start{JIT Hardware Detection} diff --git a/index.html b/index.html index 2d36d830..6b68ba62 100644 --- a/index.html +++ b/index.html @@ -257,12 +257,28 @@ .sidebar .search .clear-btn { color: #8b949e; } + /* Mermaid diagram styling for dark theme */ + .mermaid { + background: transparent !important; + text-align: center; + margin: 1em 0; + }
+ + +