Fix docs copy button: run init immediately, add astro-code styles, visible by default

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Advait Paliwal
2026-03-24 16:17:56 -07:00
parent b07b0f4197
commit 42cedd3137
2 changed files with 38 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ const sections = [
});
});
}
document.addEventListener('DOMContentLoaded', init);
init();
document.addEventListener('astro:after-swap', init);
})();
</script>