Skip to content

Add support for navigation depth limit - #409

Closed
choldgraf wants to merge 1 commit into
executablebooks:masterfrom
choldgraf:nav-depth
Closed

choldgraf wants to merge 1 commit into
executablebooks:masterfrom
choldgraf:nav-depth

Conversation

@choldgraf

Copy link
Copy Markdown
Member

This PR adds functionality for the navigation_depth parameter from the PyData Sphinx Theme - this will remove all toctree items underneath a certain depth, which can significantly speed up the build times.

This is largely sparked by some challenges that the Dask devs ran into with this theme, but I think it will be common with any community that uses this theme and has a lot of API docs. Here's the Dask issue in question:

dask/dask#8227

@choldgraf choldgraf changed the title Add support for navigation depth Add support for navigation depth limit Oct 7, 2021
@choldgraf
choldgraf marked this pull request as draft October 7, 2021 23:27
@choldgraf
choldgraf force-pushed the nav-depth branch 2 times, most recently from 3578823 to 78fdca1 Compare October 7, 2021 23:51
@choldgraf
choldgraf marked this pull request as ready for review October 7, 2021 23:58
@maksim-petukhou

Copy link
Copy Markdown

@choldgraf Unlimited / parametrized maxdepth is very useful for our documentation (constant 4 is not big enough). I'm looking forward to it.

@choldgraf

choldgraf commented Jan 14, 2022 •

Copy link
Copy Markdown
Member Author

I'm gonna close this one because we resolved it via a combination of documentation + a sphinx-specific plugin rather than exposing a new option in this theme! See this section for details: https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/configuring.html#navigation-depth

@choldgraf choldgraf closed this Jan 14, 2022
@choldgraf

Copy link
Copy Markdown
Member Author

@Maksim-0 I closed this one because the original reason it was being open has been solved, but if you think that it's still valuable to be able to control the depth of the sidebar independently, we can re-open and try to get it in

@avivrosenberg

Copy link
Copy Markdown

@choldgraf thanks for posting this solution, had the same problem and it solved it 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants