-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix several issues with nav_adapt and add unit tests #139
Conversation
I can confirm this fixes #138 and allows @mhostetter can you confirm #137 is satisfied? I tested it with our autodoc example, but not with the apigen example. @jbms I'm noticing the first entry in the global toc is missing for sub root pages. |
I noticed this too.
With |
That is the desired behavior. Not sure why I'm seeing something different. Perhaps it's the difference between |
Thanks for the testing. The issue with Additionally, I have fixed the issue whereby the first child of a Separately, I refactored the python domain fixes to split them into separate files, as was done previously for C++. As part of that refactor, I ensured that all monkey patching happens at module init time rather than during the |
To be clear, while it will build with |
Thanks. It does appear that the rubrics are working as intended. See below that the "Examples" rubric is suppressed from the global TOC, which was the goal of #137. 👍 I did notice, though, that with With 488e35f |
…tests This commit separates all of the Python domain fixes into separate files, as was done for C++. Additionally, this commit ensures that any monkey patching is done during module initialization rather than during extension setup, to avoid applying the same monkey patch more than once if there is more than one build performed in the same Python process, as happens during unit tests.
Previously, regular links to documents were unintentionally given a tooltip of `<pagename> (document)`, which was not helpful. This happened because `doc` targets are listed as Sphinx "objects".
This addresses one issue noted in #132 although due to Sphinx bug sphinx-doc/sphinx#9819 it is still not possible to use only directives to selectively include `genindex` and `modindex` in the global TOC.
This was due to a bug in my refactoring of the Python domain monkey patches, which broke |
Awesome, thanks. I can confirm this works for me now. 👍
I like the refactoring -- makes the code easier to follow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also appreciate the refactor to bite-size modules. It makes reviewing much more palatable.
pytest snapshots looks like a huge time saver!
Thanks for the review! |
Think I'll push v0.8.1 |
Sounds good |
Fixes #137.
Fixes #138.
Also fixes support for
only
directives that affect sections.