Skip to content

Commit e2a416d

Browse files
authored
Merge pull request #2941 from fermga/copilot/fix-documentation-links
Fix 545 broken .md links and add dark/light theme toggle to documentation
2 parents 2873b6d + 963b8d0 commit e2a416d

File tree

183 files changed

+12434
-1088
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+12434
-1088
lines changed

404.html

Lines changed: 67 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</head>
5454

5555

56-
<body dir="ltr">
56+
<body dir="ltr" data-md-color-scheme="default">
5757

5858

5959
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
@@ -101,7 +101,13 @@
101101
</div>
102102

103103

104-
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
104+
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
105+
106+
<button class="md-header__button md-icon theme-toggle-button" title="Toggle dark/light mode" aria-label="Toggle theme" onclick="toggleTheme()">
107+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="theme-icon-light"><path d="M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0-7 2.39 3.42C13.65 5.15 12.84 5 12 5s-1.65.15-2.39.42zM3.34 7l4.16-.35A7.2 7.2 0 0 0 5.94 8.5c-.44.74-.69 1.5-.83 2.29zm.02 10 1.76-3.77a7.13 7.13 0 0 0 2.38 4.14zm11.3 3.5-1.77-3.79a7.05 7.05 0 0 0 2.38-4.15l4.16-.35c-.14.79-.39 1.55-.83 2.29a7.2 7.2 0 0 1-1.56 1.85zm6.99-10-4.16.35A7.2 7.2 0 0 0 18.06 8.5c.44-.74.69-1.5.83-2.29l1.76 3.77z"/></svg>
108+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="theme-icon-dark" style="display: none;"><path d="M17.75 4.09 15.22 6.62l1.42 1.42 2.53-2.53zM5.34 10.42l-3.53 3.53 1.41 1.42L6.75 12zm12.01 1.42-3.53 3.53 1.42 1.41 3.53-3.53zM21 13h-4v2h4zM3 11h4v2H3zm9.5-8v4h-2V3zM12 19.5v4h-2v-4z"/></svg>
109+
</button>
110+
105111

106112

107113

@@ -1219,7 +1225,7 @@
12191225

12201226

12211227
<li class="md-nav__item">
1222-
<a href="/TNFR-Python-Engine/grammar/GLOSSARY.md" class="md-nav__link">
1228+
<a href="/TNFR-Python-Engine/GLOSSARY/" class="md-nav__link">
12231229

12241230

12251231

@@ -1472,7 +1478,7 @@
14721478

14731479

14741480
<li class="md-nav__item">
1475-
<a href="/TNFR-Python-Engine/grammar/DEPRECATION-INDEX.md" class="md-nav__link">
1481+
<a href="/TNFR-Python-Engine/grammar/" class="md-nav__link">
14761482

14771483

14781484

@@ -3190,5 +3196,61 @@ <h1>404 - Not found</h1>
31903196
<script src="/TNFR-Python-Engine/assets/javascripts/bundle.e71a0d61.min.js"></script>
31913197

31923198

3193-
</body>
3199+
3200+
<script>
3201+
function toggleTheme() {
3202+
const body = document.body;
3203+
const currentScheme = body.getAttribute('data-md-color-scheme') || 'default';
3204+
const newScheme = currentScheme === 'slate' ? 'default' : 'slate';
3205+
3206+
body.setAttribute('data-md-color-scheme', newScheme);
3207+
3208+
// Toggle icon visibility
3209+
const lightIcon = document.getElementById('theme-icon-light');
3210+
const darkIcon = document.getElementById('theme-icon-dark');
3211+
if (lightIcon && darkIcon) {
3212+
if (newScheme === 'slate') {
3213+
lightIcon.style.display = 'none';
3214+
darkIcon.style.display = 'block';
3215+
} else {
3216+
lightIcon.style.display = 'block';
3217+
darkIcon.style.display = 'none';
3218+
}
3219+
}
3220+
3221+
// Save preference
3222+
localStorage.setItem('theme-preference', newScheme);
3223+
}
3224+
3225+
// Initialize theme immediately
3226+
(function() {
3227+
const savedTheme = localStorage.getItem('theme-preference') || 'default';
3228+
const body = document.body;
3229+
body.setAttribute('data-md-color-scheme', savedTheme);
3230+
3231+
// Wait for DOM to set icon visibility
3232+
if (document.readyState === 'loading') {
3233+
document.addEventListener('DOMContentLoaded', function() {
3234+
updateThemeIcons(savedTheme);
3235+
});
3236+
} else {
3237+
updateThemeIcons(savedTheme);
3238+
}
3239+
3240+
function updateThemeIcons(theme) {
3241+
const lightIcon = document.getElementById('theme-icon-light');
3242+
const darkIcon = document.getElementById('theme-icon-dark');
3243+
if (lightIcon && darkIcon) {
3244+
if (theme === 'slate') {
3245+
lightIcon.style.display = 'none';
3246+
darkIcon.style.display = 'block';
3247+
} else {
3248+
lightIcon.style.display = 'block';
3249+
darkIcon.style.display = 'none';
3250+
}
3251+
}
3252+
}
3253+
})();
3254+
</script>
3255+
</body>
31943256
</html>

AGENTS/index.html

Lines changed: 71 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</head>
6060

6161

62-
<body dir="ltr">
62+
<body dir="ltr" data-md-color-scheme="default">
6363

6464

6565
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
@@ -112,7 +112,13 @@
112112
</div>
113113

114114

115-
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
115+
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
116+
117+
<button class="md-header__button md-icon theme-toggle-button" title="Toggle dark/light mode" aria-label="Toggle theme" onclick="toggleTheme()">
118+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="theme-icon-light"><path d="M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0-7 2.39 3.42C13.65 5.15 12.84 5 12 5s-1.65.15-2.39.42zM3.34 7l4.16-.35A7.2 7.2 0 0 0 5.94 8.5c-.44.74-.69 1.5-.83 2.29zm.02 10 1.76-3.77a7.13 7.13 0 0 0 2.38 4.14zm11.3 3.5-1.77-3.79a7.05 7.05 0 0 0 2.38-4.15l4.16-.35c-.14.79-.39 1.55-.83 2.29a7.2 7.2 0 0 1-1.56 1.85zm6.99-10-4.16.35A7.2 7.2 0 0 0 18.06 8.5c.44-.74.69-1.5.83-2.29l1.76 3.77z"/></svg>
119+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="theme-icon-dark" style="display: none;"><path d="M17.75 4.09 15.22 6.62l1.42 1.42 2.53-2.53zM5.34 10.42l-3.53 3.53 1.41 1.42L6.75 12zm12.01 1.42-3.53 3.53 1.42 1.41 3.53-3.53zM21 13h-4v2h4zM3 11h4v2H3zm9.5-8v4h-2V3zM12 19.5v4h-2v-4z"/></svg>
120+
</button>
121+
116122

117123

118124

@@ -1230,7 +1236,7 @@
12301236

12311237

12321238
<li class="md-nav__item">
1233-
<a href="../grammar/GLOSSARY.md" class="md-nav__link">
1239+
<a href="../GLOSSARY/" class="md-nav__link">
12341240

12351241

12361242

@@ -1483,7 +1489,7 @@
14831489

14841490

14851491
<li class="md-nav__item">
1486-
<a href="../grammar/DEPRECATION-INDEX.md" class="md-nav__link">
1492+
<a href="../grammar/" class="md-nav__link">
14871493

14881494

14891495

@@ -4136,7 +4142,7 @@ <h2 id="core-mission">🎯 Core Mission<a class="headerlink" href="#core-mission
41364142
<p><strong>Repository</strong>: https://github.com/fermga/TNFR-Python-Engine</p>
41374143
<h3 id="quick-links">Quick Links<a class="headerlink" href="#quick-links" title="Permanent link">&para;</a></h3>
41384144
<ul>
4139-
<li>Canonical Math Hub: <a href="src/tnfr/mathematics/README.md">src/tnfr/mathematics/README.md</a></li>
4145+
<li>Canonical Math Hub: <a href="https://github.com/fermga/TNFR-Python-Engine/tree/main/src/tnfr/mathematics/README">src/tnfr/mathematics/README.md</a></li>
41404146
<li>Theory: <a href="TNFR.pdf">TNFR.pdf</a> · <a href="../UNIFIED_GRAMMAR_RULES/">UNIFIED_GRAMMAR_RULES.md</a></li>
41414147
<li>Operators Grammar: <a href="src/tnfr/operators/grammar.py">src/tnfr/operators/grammar.py</a></li>
41424148
<li>Structural Fields: <a href="src/tnfr/physics/fields.py">src/tnfr/physics/fields.py</a></li>
@@ -4377,7 +4383,7 @@ <h3 id="u6-structural-potential-confinement">U6: STRUCTURAL POTENTIAL CONFINEMEN
43774383
<li><strong>Usage</strong>: Telemetry-based safety check (read-only, not sequence constraint)</li>
43784384
<li><strong>Typical</strong>: Valid sequences maintain Δ Φ_s ≈ 0.6 (30% of threshold)</li>
43794385
<li><strong>Canonicity</strong>: STRONG (2,400+ experiments across 5 topologies, universal)</li>
4380-
<li><strong>See</strong>: <a href="docs/grammar/U6_STRUCTURAL_POTENTIAL_CONFINEMENT.md">docs/grammar/U6_STRUCTURAL_POTENTIAL_CONFINEMENT.md</a> for complete specification</li>
4386+
<li><strong>See</strong>: <a href="grammar/U6_STRUCTURAL_POTENTIAL_CONFINEMENT/">docs/grammar/U6_STRUCTURAL_POTENTIAL_CONFINEMENT.md</a> for complete specification</li>
43814387
</ul>
43824388
<p><strong>See</strong>: <a href="../UNIFIED_GRAMMAR_RULES/">UNIFIED_GRAMMAR_RULES.md</a> for complete derivations</p>
43834389
<hr />
@@ -4865,7 +4871,7 @@ <h4 id="phase-curvature-k_-canonical-newly-promoted-nov-2025"><strong>Phase Curv
48654871
- Import from <a href="src/tnfr/physics/fields.py">src/tnfr/physics/fields.py</a>
48664872
- Compute via <code>compute_phase_curvature(G)</code> [CANONICAL]
48674873
- Optional multiscale check: <code>k_phi_multiscale_safety(G, alpha_hint=2.76)</code></p>
4868-
<p><strong>Documentation</strong>: See <a href="benchmarks/K_PHI_RESEARCH_SUMMARY.md">benchmarks/K_PHI_RESEARCH_SUMMARY.md</a> and
4874+
<p><strong>Documentation</strong>: See <a href="benchmarks/K_PHI_RESEARCH_SUMMARY/">benchmarks/K_PHI_RESEARCH_SUMMARY.md</a> and
48694875
<code>benchmarks/enhanced_fragmentation_test.py</code> for empirical validation.</p>
48704876
<hr />
48714877
<h4 id="coherence-length-_c-canonical-newly-promoted-nov-2025"><strong>Coherence Length (ξ_C)</strong> - CANONICAL ⭐ <strong>NEWLY PROMOTED (Nov 2025)</strong><a class="headerlink" href="#coherence-length-_c-canonical-newly-promoted-nov-2025" title="Permanent link">&para;</a></h4>
@@ -4910,7 +4916,7 @@ <h4 id="coherence-length-_c-canonical-newly-promoted-nov-2025"><strong>Coherence
49104916
not captured by Φ_s, |∇φ|, or K_φ. Enables detection of genuine phase
49114917
transitions through divergence near critical points. Topology-dependent
49124918
critical exponents suggest rich universality class structure in TNFR networks.</p>
4913-
<p><strong>Documentation</strong>: See <a href="docs/XI_C_CANONICAL_PROMOTION.md">docs/XI_C_CANONICAL_PROMOTION.md</a> for complete
4919+
<p><strong>Documentation</strong>: See <a href="XI_C_CANONICAL_PROMOTION/">docs/XI_C_CANONICAL_PROMOTION.md</a> for complete
49144920
experimental validation, <a href="docs/XI_C_BREAKTHROUGH_REPORT.txt">docs/XI_C_BREAKTHROUGH_REPORT.txt</a> for detailed
49154921
analysis, and <a href="benchmarks/results/xi_c_critical_behavior_analysis.png">benchmarks/results/xi_c_critical_behavior_analysis.png</a> for
49164922
visualization of critical behavior across topologies.</p>
@@ -4985,5 +4991,61 @@ <h4 id="coherence-length-_c-canonical-newly-promoted-nov-2025"><strong>Coherence
49854991
<script src="../assets/javascripts/bundle.e71a0d61.min.js"></script>
49864992

49874993

4988-
</body>
4994+
4995+
<script>
4996+
function toggleTheme() {
4997+
const body = document.body;
4998+
const currentScheme = body.getAttribute('data-md-color-scheme') || 'default';
4999+
const newScheme = currentScheme === 'slate' ? 'default' : 'slate';
5000+
5001+
body.setAttribute('data-md-color-scheme', newScheme);
5002+
5003+
// Toggle icon visibility
5004+
const lightIcon = document.getElementById('theme-icon-light');
5005+
const darkIcon = document.getElementById('theme-icon-dark');
5006+
if (lightIcon && darkIcon) {
5007+
if (newScheme === 'slate') {
5008+
lightIcon.style.display = 'none';
5009+
darkIcon.style.display = 'block';
5010+
} else {
5011+
lightIcon.style.display = 'block';
5012+
darkIcon.style.display = 'none';
5013+
}
5014+
}
5015+
5016+
// Save preference
5017+
localStorage.setItem('theme-preference', newScheme);
5018+
}
5019+
5020+
// Initialize theme immediately
5021+
(function() {
5022+
const savedTheme = localStorage.getItem('theme-preference') || 'default';
5023+
const body = document.body;
5024+
body.setAttribute('data-md-color-scheme', savedTheme);
5025+
5026+
// Wait for DOM to set icon visibility
5027+
if (document.readyState === 'loading') {
5028+
document.addEventListener('DOMContentLoaded', function() {
5029+
updateThemeIcons(savedTheme);
5030+
});
5031+
} else {
5032+
updateThemeIcons(savedTheme);
5033+
}
5034+
5035+
function updateThemeIcons(theme) {
5036+
const lightIcon = document.getElementById('theme-icon-light');
5037+
const darkIcon = document.getElementById('theme-icon-dark');
5038+
if (lightIcon && darkIcon) {
5039+
if (theme === 'slate') {
5040+
lightIcon.style.display = 'none';
5041+
darkIcon.style.display = 'block';
5042+
} else {
5043+
lightIcon.style.display = 'block';
5044+
darkIcon.style.display = 'none';
5045+
}
5046+
}
5047+
}
5048+
})();
5049+
</script>
5050+
</body>
49895051
</html>

API_CONTRACTS/index.html

Lines changed: 67 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</head>
5656

5757

58-
<body dir="ltr">
58+
<body dir="ltr" data-md-color-scheme="default">
5959

6060

6161
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
@@ -108,7 +108,13 @@
108108
</div>
109109

110110

111-
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
111+
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
112+
113+
<button class="md-header__button md-icon theme-toggle-button" title="Toggle dark/light mode" aria-label="Toggle theme" onclick="toggleTheme()">
114+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="theme-icon-light"><path d="M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0-7 2.39 3.42C13.65 5.15 12.84 5 12 5s-1.65.15-2.39.42zM3.34 7l4.16-.35A7.2 7.2 0 0 0 5.94 8.5c-.44.74-.69 1.5-.83 2.29zm.02 10 1.76-3.77a7.13 7.13 0 0 0 2.38 4.14zm11.3 3.5-1.77-3.79a7.05 7.05 0 0 0 2.38-4.15l4.16-.35c-.14.79-.39 1.55-.83 2.29a7.2 7.2 0 0 1-1.56 1.85zm6.99-10-4.16.35A7.2 7.2 0 0 0 18.06 8.5c.44-.74.69-1.5.83-2.29l1.76 3.77z"/></svg>
115+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="theme-icon-dark" style="display: none;"><path d="M17.75 4.09 15.22 6.62l1.42 1.42 2.53-2.53zM5.34 10.42l-3.53 3.53 1.41 1.42L6.75 12zm12.01 1.42-3.53 3.53 1.42 1.41 3.53-3.53zM21 13h-4v2h4zM3 11h4v2H3zm9.5-8v4h-2V3zM12 19.5v4h-2v-4z"/></svg>
116+
</button>
117+
112118

113119

114120

@@ -1226,7 +1232,7 @@
12261232

12271233

12281234
<li class="md-nav__item">
1229-
<a href="../grammar/GLOSSARY.md" class="md-nav__link">
1235+
<a href="../GLOSSARY/" class="md-nav__link">
12301236

12311237

12321238

@@ -1479,7 +1485,7 @@
14791485

14801486

14811487
<li class="md-nav__item">
1482-
<a href="../grammar/DEPRECATION-INDEX.md" class="md-nav__link">
1488+
<a href="../grammar/" class="md-nav__link">
14831489

14841490

14851491

@@ -3704,5 +3710,61 @@ <h2 id="references">References<a class="headerlink" href="#references" title="Pe
37043710
<script src="../assets/javascripts/bundle.e71a0d61.min.js"></script>
37053711

37063712

3707-
</body>
3713+
3714+
<script>
3715+
function toggleTheme() {
3716+
const body = document.body;
3717+
const currentScheme = body.getAttribute('data-md-color-scheme') || 'default';
3718+
const newScheme = currentScheme === 'slate' ? 'default' : 'slate';
3719+
3720+
body.setAttribute('data-md-color-scheme', newScheme);
3721+
3722+
// Toggle icon visibility
3723+
const lightIcon = document.getElementById('theme-icon-light');
3724+
const darkIcon = document.getElementById('theme-icon-dark');
3725+
if (lightIcon && darkIcon) {
3726+
if (newScheme === 'slate') {
3727+
lightIcon.style.display = 'none';
3728+
darkIcon.style.display = 'block';
3729+
} else {
3730+
lightIcon.style.display = 'block';
3731+
darkIcon.style.display = 'none';
3732+
}
3733+
}
3734+
3735+
// Save preference
3736+
localStorage.setItem('theme-preference', newScheme);
3737+
}
3738+
3739+
// Initialize theme immediately
3740+
(function() {
3741+
const savedTheme = localStorage.getItem('theme-preference') || 'default';
3742+
const body = document.body;
3743+
body.setAttribute('data-md-color-scheme', savedTheme);
3744+
3745+
// Wait for DOM to set icon visibility
3746+
if (document.readyState === 'loading') {
3747+
document.addEventListener('DOMContentLoaded', function() {
3748+
updateThemeIcons(savedTheme);
3749+
});
3750+
} else {
3751+
updateThemeIcons(savedTheme);
3752+
}
3753+
3754+
function updateThemeIcons(theme) {
3755+
const lightIcon = document.getElementById('theme-icon-light');
3756+
const darkIcon = document.getElementById('theme-icon-dark');
3757+
if (lightIcon && darkIcon) {
3758+
if (theme === 'slate') {
3759+
lightIcon.style.display = 'none';
3760+
darkIcon.style.display = 'block';
3761+
} else {
3762+
lightIcon.style.display = 'block';
3763+
darkIcon.style.display = 'none';
3764+
}
3765+
}
3766+
}
3767+
})();
3768+
</script>
3769+
</body>
37083770
</html>

0 commit comments

Comments
 (0)