Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for collapsible multi-level sidebar #1360

Closed
4 tasks done
LittleSound opened this issue Sep 18, 2022 · 10 comments · Fixed by #1835
Closed
4 tasks done

Add support for collapsible multi-level sidebar #1360

LittleSound opened this issue Sep 18, 2022 · 10 comments · Fixed by #1835
Assignees
Labels
enhancement New feature or request theme Related to the theme
Milestone

Comments

@LittleSound
Copy link
Member

Is your feature request related to a problem? Please describe.

I would like to have to collapsible navigation sidebar since I organize my documents by using multiple layers of folders, which is frustrating to browse or lookup the content/page I want.

VitePress only supports the top-level folders to be collapsible in the navigation sidebar currently.

Describe the solution you'd like

The default theme that VitePress provided could support multi-level sidebar to be collapsible since many of the people may also face such kind of the problem while using VitePress.

Describe alternatives you've considered

I have tried to override the VPSidebarNav component from default theme that VitePress provided, however, the theme configuration overridding is not supported currently (related issue is still open, ref: #235 ), or I would have to duplicate the default theme as a single repository and publish it as a npm package after the development is done by myself. Anyways, I may think this kind of the feature is general for most of the users, it should be provided by VitePress, nor by users.

Additional context

No response

Validations

LittleSound added a commit to LittleSound/vitepress that referenced this issue Sep 18, 2022
@brc-dd brc-dd added enhancement New feature or request theme Related to the theme labels Sep 21, 2022
LittleSound added a commit to LittleSound/vitepress that referenced this issue Sep 22, 2022
@awbait

This comment was marked as off-topic.

@LittleSound

This comment was marked as off-topic.

@awbait
Copy link

awbait commented Oct 13, 2022

image
How can I collapse this item?

@nekomeowww
Copy link

This kind of feature is awesome, I would really need it!
Do you guys have a roadmap or plan for when the feature would be released?

@brc-dd
Copy link
Member

brc-dd commented Oct 29, 2022

I'm currently working on the code groups feature, will review and try to get #1361 merged within this week. Sorry for the delay 😓

@kiaking
Copy link
Member

kiaking commented Nov 1, 2022

I'll take that PR over to adjust the design a bit 👍

@Goozoon
Copy link

Goozoon commented Dec 7, 2022

I'll take that PR over to adjust the design a bit 👍

Great. Please add (i think it is called --vp-c-brand element) so it will look something like this
Screenshot 2022-12-07 101905

We have it already for the right side 'on this page' already. For that part i would add some padding under 'on this page' text and some multileveling for the rest. Something like this but in Vitepress style
Screenshot 2022-12-07 101939

Thank you Kia King

@awbait
Copy link

awbait commented Dec 20, 2022

we are looking forward to it

@mrcego
Copy link
Contributor

mrcego commented Jan 17, 2023

Waiting for this. In the company I'm currently working we are populating a doc with Vitepress, and we need three levels of categories in one of the team page.

@Zhengqbbb
Copy link
Contributor

Expecting and waiting for this. I think the next step should be to push this feature.

@kiaking kiaking added this to the v1.0.0 milestone Jan 20, 2023
@kiaking kiaking self-assigned this Jan 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.