-
Notifications
You must be signed in to change notification settings - Fork 213
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
Could localtoc in sidebar support depth option? #169
Comments
Just like |
Hi @40huo, it shouldn't be too painful to support this. PR would be welcome, in the PR it would be nice if you included a simple demo website. You mention a specified page. Adding :tocdepth: 2
My First Heading
================
The rest of the document... However, I believe that will affect both the global and local toc. But worth a shot since it's easy to test! If you want to do give it a go, you'll need to edit
Currently, it looks like |
For a page contains lots of headings and subheadings, if we generate localtoc in sidebar, the sidebar would be too long to display and it doesn't support scroll well, sometimes even overflows the footer. So, could localtoc support a
depth
option and then we can control the length of sidebar?The text was updated successfully, but these errors were encountered: