DocumenterVitepress.jl icon indicating copy to clipboard operation
DocumenterVitepress.jl copied to clipboard

[Feature Request] Provide an API for directory specific sidebars

Open avik-pal opened this issue 1 year ago • 4 comments

Vitepress supports this https://vitepress.dev/reference/default-theme-sidebar#multiple-sidebars so it might be good to support that.

Currently, for long documentations, the sidebar is quite big

image

avik-pal avatar Mar 09 '24 18:03 avik-pal

Would it be better to have them collapse instead? I could probably add that behaviour in relatively easily...

For directory specific sidebars, you could probably override them in page frontmatter for now.

asinghvi17 avatar Mar 09 '24 18:03 asinghvi17

Yes, collapsible is a good way too. I tried to look for an option where only the current page sidebar is expanded, but Vitepress doesn't provide that (unless I missed something). For example, if I am in "Overview" then "Getting Started" is expanded but all other sections are collapsed.

avik-pal avatar Mar 09 '24 19:03 avik-pal

Screenshot 2024-03-12 at 21 09 03

if you set everything to collapse, then the one that is active will be open, and the others hidden. But, yeah, opening a new one will not collapse the other ones.

lazarusA avatar Mar 12 '24 20:03 lazarusA

That's perfect.

avik-pal avatar Mar 12 '24 20:03 avik-pal