style(docs): keep root file tree folder open by default
Generate documentation / build-docs (push) Successful in 3m39s
Generate documentation / build-docs (push) Successful in 3m39s
This commit is contained in:
@@ -18,7 +18,7 @@ export default defineConfig({
|
|||||||
head: [
|
head: [
|
||||||
{
|
{
|
||||||
tag: 'script',
|
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'],
|
customCss: ['./src/styles/catppuccin.css'],
|
||||||
|
|||||||
Reference in New Issue
Block a user