-
Notifications
You must be signed in to change notification settings - Fork 0
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
I'm trying to setup the table of contents to just show the thesis level, but nothing lower #3
Comments
The ToC on the left is not the same as the toc you add to the index page, confusingly. The readthedocs theme does pull from that (e.g. in the eWaterCycle docs). After a quick search I found this: https://sphinx-book-theme.readthedocs.io/en/stable/sections/sidebar-primary.html#control-the-depth-of-the-left-sidebar-lists-to-expand on the docs of the sphinx book theme. The sphinx ecosystem is very messy. |
Hmm, it says as a solution to edit |
Oh yeah I guess that's created during the build... The jupyter book config does indeed say to use maxdepth https://jupyterbook.org/en/stable/structure/configure.html#control-the-depth-of-the-displayed-table-of-contents Maybe try
|
maxdepth is only for a 'within-page Table of Contents', I think what you want is to have the TOC only contain the files that you want to be there and link to other files which are not included there. Make sure you have the following options disabled:
in your |
The problem is that other headers from inside the notebooks are being displayed in the ToC. Rolf wants those to not show up. |
In the table of contents on the left or on the 'within-page Table of contents'? |
the one on the left sidebar |
Hmm, I don't see why/how/where headers from inside the notebook which are on the level of ## or lower are displayed there. Headers with # are displayed there for sure, but you can prevent that from happening by not having those files in the TOC as mentioned here: #3 (comment) |
the thing is, I do want to have the nav buttons at the bottom of the page for "next" and "previous", but not show the final level in the toc on the left of the page... sorry of the problem is not clear. |
Aha. Well I think the nav buttons are a result from the TOC, so you cannot have them without inclusion of the file in the TOC |
I'm trying to setup the table of contents to just show the thesis level, but nothing lower and I'm failing. if I read the docs right, maxdepth should do the trick, but I must be doing it wrong.
The text was updated successfully, but these errors were encountered: