Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upI add manual/auto expand/collapse function to sub-sidebar. #1135
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


enhanced sidebar
using '.sidebar' for main sidebar, using '.app-sub-sidebar' for docs sidebar.
add '+/-' sign before link.
when you click at '+/-' button, you can expand/collapse the item.
when you click the link, the main page sync scroll and heighlight.
when you scroll the main page, the '.app-sub-sidebar' sync scroll and auto expand/collapse.
source code
https://github.com/vagra/docsify
branch: sidebar
demo site
https://kepan.org/alpha/#/kepan/
(this is a temp link, will be closed in the future)
https://kepan.org/docsify/
this is using modify version of docsify, support for up to 108 levels heading.
If you feel good, you can merge my code to your project.