You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Doc] Use sphinx-remove-toctrees to generated docstring pages from navigation (and reduce build time) #30021
The pydata-sphinx-theme tends to create large trees in the left-side navigation (and thus large generated large html sizes) because sphinx adds all generated docstring pages (from autosummary usage) to the global "toctrees". A small package (https://github.com/executablebooks/sphinx-remove-toctrees/) was created to help with this.
Todd Farmer / @toddfarmer:
This issue was last updated over 90 days ago, which may be an indication it is no longer being actively worked. To better reflect the current state, the issue is being unassigned. Please feel free to re-take assignment of the issue if it is being actively worked, or if you plan to start that work soon.
I tried this out on the branch with the updated pydata sphinx theme and it works well. The fact that the left sidebar has a missing parent page is a bit confusing but not so much anymore because the parent page is visible in the article header, see:
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.
Activity
asfimport commentedon Oct 25, 2021
Joris Van den Bossche / @jorisvandenbossche:
I tried this out and it works nicely, but it also has a downside of then no longer "highlighting" the parent page in the navigation left-sidebar (which is somewhat annoying for our docs, since the sidebar is quite long and doesn't fit on a single page). See also executablebooks/sphinx-remove-toctrees#1 (comment)
On the other hand, with this change we can remove the if/else in the template here:
arrow/docs/source/_templates/docs-sidebar.html
Lines 13 to 17 in be665ef
generate_nav_htmlcall instead).asfimport commentedon Jul 12, 2022
Todd Farmer / @toddfarmer:
This issue was last updated over 90 days ago, which may be an indication it is no longer being actively worked. To better reflect the current state, the issue is being unassigned. Please feel free to re-take assignment of the issue if it is being actively worked, or if you plan to start that work soon.
AlenkaF commentedon Jul 12, 2023
I tried this out on the branch with the updated pydata sphinx theme and it works well. The fact that the left sidebar has a missing parent page is a bit confusing but not so much anymore because the parent page is visible in the article header, see:
github-actions commentedon Feb 21, 2026
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.