This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 563efcdd428 Fix railway map (#37623)
563efcdd428 is described below

commit 563efcdd4286b320cdd6f912b0108edb94923ce5
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Jan 3 17:09:24 2026 +0800

    Fix railway map (#37623)
---
 .../document/themes/hugo-theme-learn/static/css/railroad-diagrams.css | 3 ++-
 docs/document/themes/hugo-theme-learn/static/js/learn.js              | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/docs/document/themes/hugo-theme-learn/static/css/railroad-diagrams.css 
b/docs/document/themes/hugo-theme-learn/static/css/railroad-diagrams.css
index 57580c12dfe..bf001cde7f7 100644
--- a/docs/document/themes/hugo-theme-learn/static/css/railroad-diagrams.css
+++ b/docs/document/themes/hugo-theme-learn/static/css/railroad-diagrams.css
@@ -7,7 +7,8 @@ svg.railroad-diagram path {
     fill: rgba(0,0,0,0);
 }
 svg.railroad-diagram text {
-    font: bold 14px monospace;
+    font: bold 14px "Helvetica Neue", Arial, sans-serif;
+    fill: #000;
     text-anchor: middle;
     white-space: pre;
 }
diff --git a/docs/document/themes/hugo-theme-learn/static/js/learn.js 
b/docs/document/themes/hugo-theme-learn/static/js/learn.js
index 6009a9f43af..f84a2a8393b 100644
--- a/docs/document/themes/hugo-theme-learn/static/js/learn.js
+++ b/docs/document/themes/hugo-theme-learn/static/js/learn.js
@@ -461,7 +461,7 @@ jQuery(document).ready(function() {
         }
 
         function tokenize(text) {
-            var regex = 
/::=|\\?|\\*|\\+|\\||\\(|\\)|\\[|\\]|'[^']*'|[A-Za-z_][A-Za-z0-9_-]*|,/g;
+            var regex = 
/::=|\?|\*|\+|\||\(|\)|\[|\]|'[^']*'|[A-Za-z_][A-Za-z0-9_-]*|,/g;
             var tokens = text.match(regex);
             return tokens ? tokens : [];
         }
@@ -588,7 +588,7 @@ jQuery(document).ready(function() {
                     htmlParts.push('<p class=\"rr-title\">' + def.name + 
':</p><p>Railroad diagram unavailable.</p>');
                 }
             }
-            return htmlParts.join('\\n');
+            return htmlParts.join('\n');
         }
 
         ensureRailroadAssets().then(function () {

Reply via email to