-
Notifications
You must be signed in to change notification settings - Fork 342
Page TOC in primary (left) sidebar TOC? #2211
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
Comments
I guess some changes will be needed in generate_toctree_html function. |
we get a lot of requests to change how the theme's TOC / navigation is arranged. For example #1007 #465 #340 #221 #762 #944 #1181. We simply cannot accommodate all possible layout preferences or options. Regarding this specific request, my hunch is that if we tried to munge the in-page content with the site-wide content, we would end up with some nightmarish layout logic for the (no longer always needed?) secondary sidebar. Have you looked at other Sphinx themes to see if any of them already do this? |
My idea is that having a secondary sidebar (right one) in documentation where the pages do not have much headers/sections seems like we are wasting screen space. For instance, in: https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/install.html ![]() In our case, even more because we had removed the So we have removed completely the secondary (right side) bar, and moved the I checked the other themes and they don't seem to include this kind of style (they are all 3-column themes too). Having the option of including the page TOC in the root TOC will be nice. But I understand that might be a lot work, and we cannot move away from If you could drop me some links for customising the |
Hi all,
I was wondering if it is possible to include the page table of content (TOC) as part of the global TOC that it is usually located on the primary (left) sidebar.
For instance, given the following files:
directory1/index.md
and
directory2/index.md
So when we build the pages we should have the following TOC on the left sidebar:
when we are on the page 1
when we are on the page 2:
Is it possible to do that with pydata-sphinx-theme? Would it be interesting to have that feature? I might have the time to code that up.
The text was updated successfully, but these errors were encountered: