-
Notifications
You must be signed in to change notification settings - Fork 321
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
Adding headers before a toctree causes it to disappear in the sidebar #218
Comments
I have one sort-of fix for this here: #219 |
yeah, this is going to be a problem until we resolve this bug or #219 is merged. In the meantime in Jupyter we are just including a |
In the case I mentioned above, we wanted the toctree to show up at the bottom of the document, not the top. Is there a convenient trick in sphinx RST to duplicate the toctree as a hidden element at the top of the page? |
yeah that's what I mean, we put |
Thanks, I will adopt the TODO comment. |
I think I have an open PR against Sphinx for this... Will link it when I get around to it. |
Did you mean sphinx-doc/sphinx#3622? |
If you put a header just before a toctree, then the toctree items no longer appear in the sidebar. For example:
works, but
causes mypage to not show up.
I think that this is because of this line:
https://github.com/pandas-dev/pydata-sphinx-theme/blob/3a538b1dbed9fed302c314765dda9b73a0b6ab85/pydata_sphinx_theme/__init__.py#L113
which is preventing us from discovering nested pages under the header list item.
I am a bit surprised that we have not run into this before. Do the pandas docs not use any headers on a page above the toctree? I just discovered that it was the case in some jupyter docs and I just didn't notice, so @jorisvandenbossche you may want to check.
The text was updated successfully, but these errors were encountered: