question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for collapsible multi-level sidebar

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
kiakingcommented, Nov 1, 2022

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

8reactions
brc-ddcommented, 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 😓

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multi-level sidebar nav
I will add this to our list of ideas and we will discuss possibility to create multilevel sidenav.
Read more >
Responsive Multi-level Sidebar Menu With JavaScript/CSS
A responsive sidebar menu with multi-level sub-menus written in plain JavaScript and CSS. The sidebar menu is displayed in Compact mode on ...
Read more >
Trouble with multi-level collapsible Bootstrap side-nav menu
I'm trying to create a multi-level collapsible side navigation in bootstrap using bootstrap.js. My problem is that I've added in the second ...
Read more >
How to create a Responsive Sidebar with dropdown menu ...
This function is used with the menu bars icon and cross icon with the help of onClick() function. When we click on the...
Read more >
CSS Multi-Level Accordion Menu
Today's resource is a handy accordion menu with support for groups/subitems. It works with CSS only, using the :checked pseudo-class selector on the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found