- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 7.2 breaks generated documentation headers #11618
Comments
Hi Andrew (@oddbookworm), Is there a smaller reproducer at all than setting up an entire pygame environment please? Ideally a stand-alone Sphinx project, but in effect the fewer moving parts the better! Thanks, |
Uh, I don't know enough about how it works to do that myself. Lemme ask around to see if someone else knows enough about our workflow to sort that out |
I did a bit of digging, and noticed that some change in the |
|
@oddbookworm If you are not able to find a minimal reproducer, can you bisect the culprit commit so that we may have an idea of what has been introduced / removed that may have lead to this issue? Thank you. |
I was able to do that. |
This is the last blocker for 7.2.3. A |
The issue is caused by these two lines--swapping the order fixes things. I'm continuting to investigate for a proper fix. sphinx/sphinx/domains/python.py Lines 1311 to 1313 in 2f6ea14
|
See #11647, which should fix this issue. |
@oddbookworm / @dr0id / @ankith26: please may you test with Sphinx master?: A |
Doesn't fix the issue for me. I didn't come up with a minimal reproducer yet, but in the process of testing things out I did find the source of the issue, though I don't understand it well enough. So basically we have a custom subclass of |
@ankith26 please may you try re-creating your environment from scratch? |
Oh I'm sorry. I don't know what went wrong when I wrote my previous comment, but I just tried again and yes the issue is indeed fixed. Thanks! |
Wonderful! Thank you for reporting, this uncovered a very subtle bug that I otherwise would've missed. A |
Thanks for the bugfix, I can confirm if works again. |
Sphinx 7.2.4 has been released with the fix. A |
… limit anymore
Describe the bug
Updating to sphinx 7.2.0 (or higher, including 7.2.2) breaks our documentation headers at pygame-ce. As an example, here's the current doc page for pygame-ce's draw module, and here's what the doc looks like when I generate locally with 7.2.0 (7.1.2 produces what's on github)
The reST source for that doc is here and here is our makeref.py
How to Reproduce
Create a pygame-ce dev environment (our github wiki has instructions)
Install sphinx 7.2-7.2.2 (all of these versions give broken doc headers)
python setup.py docs --fullgeneration
python setup.py install
You should see an error about undefined references to
DOC_****
Install sphinx 7.1.2 (or earlier) and try again. Should work
Environment Information
Sphinx extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: