docs: update refs html extract script

This commit is contained in:
2026-08-28 14:55:57 +05:00
parent ada96b3534
commit 7aa50eee6c
6 changed files with 101 additions and 5 deletions
+15 -1
View File
@@ -2954,5 +2954,19 @@ h1 {
<template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING">
</template>
<!--/$-->
</body>
<script>
(function () {
var btn = document.querySelector('button[aria-label="Toggle theme"]');
var shell = document.querySelector('.app-shell');
if (!btn || window.__themeToggleInjected) return;
window.__themeToggleInjected = true;
btn.addEventListener('click', function () {
document.documentElement.classList.toggle('dark-mode');
if (shell) shell.classList.toggle('dark-mode');
});
})();
</script>
</body>
</html>