From d43e6cf64a7162b5316df371bd105bc8960c4607 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 15 Jun 2026 01:26:01 +0800 Subject: Replace Cascadia Code with JetBrains Mono across docs --- docs/_zh_CN/index.html | 2 +- docs/css/dark.css | 5 +++++ docs/css/light.css | 5 +++++ docs/doc.html | 2 +- docs/example-viewer.html | 16 +++++++++++----- index.html | 9 +++++---- 6 files changed, 28 insertions(+), 11 deletions(-) diff --git a/docs/_zh_CN/index.html b/docs/_zh_CN/index.html index c6c13e6..8dd75dc 100644 --- a/docs/_zh_CN/index.html +++ b/docs/_zh_CN/index.html @@ -17,7 +17,7 @@ diff --git a/docs/css/dark.css b/docs/css/dark.css index a9791bd..60859f1 100644 --- a/docs/css/dark.css +++ b/docs/css/dark.css @@ -439,6 +439,8 @@ body.sticky .sidebar-toggle { background-color: #241c16; border-radius: 2px; padding: 0.15em 0.4em; + font-family: "JetBrains Mono", "Noto Serif SC", monospace; + font-variant-ligatures: contextual; } .markdown-section pre { background-color: #241c16; @@ -446,11 +448,14 @@ body.sticky .sidebar-toggle { border-radius: 2px; padding: 1rem; overflow-x: auto; + font-family: "JetBrains Mono", "Noto Serif SC", monospace; + font-variant-ligatures: contextual; } .markdown-section pre > code { background: transparent; padding: 0; color: #e8ddd0; + font-family: inherit; } .markdown-section blockquote { border-left: 3px solid #c43931; diff --git a/docs/css/light.css b/docs/css/light.css index 17aa40a..e54eb0a 100644 --- a/docs/css/light.css +++ b/docs/css/light.css @@ -439,6 +439,8 @@ body.sticky .sidebar-toggle { background-color: #f0e8d8; border-radius: 2px; padding: 0.15em 0.4em; + font-family: "JetBrains Mono", "Noto Serif SC", monospace; + font-variant-ligatures: contextual; } .markdown-section pre { background-color: #f0e8d8; @@ -446,11 +448,14 @@ body.sticky .sidebar-toggle { border-radius: 2px; padding: 1rem; overflow-x: auto; + font-family: "JetBrains Mono", "Noto Serif SC", monospace; + font-variant-ligatures: contextual; } .markdown-section pre > code { background: transparent; padding: 0; color: #3a2a1a; + font-family: inherit; } .markdown-section blockquote { border-left: 3px solid #b8352d; diff --git a/docs/doc.html b/docs/doc.html index ea5d7ad..3f7ca93 100644 --- a/docs/doc.html +++ b/docs/doc.html @@ -17,7 +17,7 @@ diff --git a/docs/example-viewer.html b/docs/example-viewer.html index f744d8f..dd51e95 100644 --- a/docs/example-viewer.html +++ b/docs/example-viewer.html @@ -8,7 +8,7 @@ @@ -143,7 +143,8 @@ color: #9a8a7a; padding: 0.4rem 1rem; font-size: 0.82rem; - font-family: "Cascadia Code", "Fira Code", monospace; + font-family: "JetBrains Mono", "Noto Serif SC", monospace; + font-variant-ligatures: contextual; cursor: pointer; transition: all 0.2s; border-radius: 2px 2px 0 0; @@ -171,13 +172,16 @@ margin: 0; padding: 1.25rem; overflow-x: auto; - font-family: "Cascadia Code", "Fira Code", monospace; + font-family: "JetBrains Mono", "Noto Serif SC", monospace; + font-variant-ligatures: contextual; font-size: 0.85rem; line-height: 1.65; } .code-frame pre code.hljs { background: transparent; padding: 0; + font-family: inherit; + font-variant-ligatures: inherit; } .doc-box { @@ -214,8 +218,10 @@ padding: 0.12em 0.4em; border-radius: 2px; font-size: 0.85em; - font-family: "Cascadia Code", "Fira Code", monospace; + font-family: "JetBrains Mono", "Noto Serif SC", monospace; + font-variant-ligatures: contextual; } + .doc-box strong { color: #e8ddd0; } @@ -386,7 +392,7 @@ i++; // skip closing ``` var codeText = escapeHtml(codeLines.join("\n")); html += - '
' +
+                                "
" +
                                 codeText +
                                 "
"; continue; diff --git a/index.html b/index.html index df0d4f3..f76aa7f 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@