From a5e6efc7612785c71a53394d5f912ab2be604a4c Mon Sep 17 00:00:00 2001 From: rootiest Date: Sun, 26 Jul 2026 22:33:16 -0400 Subject: [PATCH] style(docs): keep root file tree folder open by default --- docs/site/astro.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/site/astro.config.mjs b/docs/site/astro.config.mjs index c946a48..c4d8804 100644 --- a/docs/site/astro.config.mjs +++ b/docs/site/astro.config.mjs @@ -18,7 +18,7 @@ export default defineConfig({ head: [ { tag: 'script', - content: 'document.addEventListener("DOMContentLoaded", () => { document.querySelectorAll("starlight-file-tree details").forEach(d => d.removeAttribute("open")); });', + content: 'document.addEventListener("DOMContentLoaded", () => { document.querySelectorAll("starlight-file-tree").forEach(tree => { tree.querySelectorAll("details").forEach((d, i) => { if (i !== 0) d.removeAttribute("open"); }); }); });', }, ], customCss: ['./src/styles/catppuccin.css'],