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
Sphinx 3 update #491
Sphinx 3 update #491
Conversation
The patterns are matched against filenames, not paths.
Use .. cpp:namespace:: to put each example in its own namespace.
(Fixes #490) |
Everything else seems good to me, thanks as always for the patches Jakob. |
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.
This looks great, thanks so much! Only one small thing I noticed.
A small clarification: the Python 2 to 3 changes in this PR are only the necessary ones to make things run. One should probably take a more thorough look at what could be simplified. For example, if I understand correctly, then the |
Yeah, I believe this is the case too. The few lines where six is used directly should be reworked so that they are just regular python 3. There is likely a lot of legacy logic in Breathe, both for old Python versions and for old Sphinx versions. Fixing all of this is probably something for future polishing issues. (Or perhaps for Breathe 5 (partial) rewrite one day.) |
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.
Looks good. Confirmed working :)
@svenevs could you check if all is ok now and if so approve? |
It looks good to me, local testing seems successful too! |
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.
Just tested on Zephyr's documentation and it seems to fix the issue I reported here:
sphinx-doc/sphinx#7424
@svenevs in order to approve for the UI you can go to the Merging this, will do an upload afterwards. |
Released Breathe 4.15.0. If you use an older Sphinx version 2.x it might be necessary to remain on 4.14.x, not sure. |
Oh, very sorry! I resolved the conversation but did not update the review to indicate no changes needed... |
Hi guys! Thanks a lot for the prompt fixes! I can confirm that this PR indeed fixed the error in Sphinx 3 about unknown c domain.
|
Breathe's CICD is passing, so this is false. It is possible you have discovered another bug in either Breathe or Sphinx though, Breathe's tests do not cover every (edge) case. If I Still, Sphinx should not exception even if Breathe is doing weird stuff, so for now I suggest opening an issue in the Sphinx repo with instructions on how to reproduce. |
@vermeeren Thanks for your reply! Reported with brief repro in sphinx-doc/sphinx#7423 (comment). |
Updates to Sphinx 3 and improvements of documentation/tests:
specific.rst
).breathe_domain_by_file_pattern
in the documentation: only filename globbing is possible, not path globbing.