LuxDL / DocumenterVitepress.jl

Documentation with Documenter.jl and VitePress
https://luxdl.github.io/DocumenterVitepress.jl/
MIT License
63 stars 9 forks source link

[Feature Request] Provide an API for directory specific sidebars #70

Open avik-pal opened 3 months ago

avik-pal commented 3 months ago

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

asinghvi17 commented 3 months ago

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.

avik-pal commented 3 months ago

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.

lazarusA commented 3 months ago
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.

avik-pal commented 3 months ago

That's perfect.