-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat: add support for collapsible multi-level sidebar #1361
Conversation
f27cbaa
to
8607fe1
Compare
I note a feature. I dont it is need to support. But i think it will be nice~ 🧐 About enter page auto expand
The demo: I have screen-capture.webm |
@Zhengqbbb It should open by default, we added that in #1094 . Can you confirm it's not auto expanding on the latest version? If so, please create a new issue. We'll fix that. |
I actually found this problem in the code when I wrote this PR, and I wanted to submit a PR to rewrite that part of the problematic code with multi-layered collapsed sidebar supported after I finished this multi-layered collapsed navigation bar feature, but this PR was put on hold. |
@Zhengqbbb @brc-dd I implemented the auto-expand feature for the multi-layer navigation bar in the last commit, and it's now faster since it doesn't need to Iterating over the entire route 🚀 . 2022-10-29.17.49.44.mov |
I've opened new PR due to quite large design concept difference. |
fixes #1360
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.
demo
I'm using this feature in my knowledge base site, if you want you can go see the results: Nólëbase
collapsed
expand
description