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 error when building with Sphinx 4.5 #16193
Conversation
I tested this patch and it fixes the problem we had building Coq in Fedora Rawhide with the latest Sphinx. |
@Zimmi48 what more needs to be done for this? |
Fedora package patched: https://src.fedoraproject.org/rpms/coq/c/00b57637d8246e51eaae207988a3b922aaf19ede?branch=rawhide |
As the author of the PR wrote, this patch cannot be merged as is because it breaks the build with older Sphinx version. Probably it should be a draft PR to reflect this. We are also looking for feedback from @cpitclaudel on this code to know how to proceed. |
Can we do something like |
Done. I left CR imported to make it easier to compare patched function with original version. |
I will try to look this weekend |
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.
FWIW, I am fine with merging this solution.
@cpitclaudel Did you get the chance to look at it?
@coqbot merge now |
Done in sphinx-doc/sphinx#10647. |
Thanks! |
Ideally, we should stop monkey-patching and forward the fix to Sphinx upstream. I don't know details of the fix, so it would be better if the original author @cpitclaudel does this.
Fixes / closes #15956