-
-
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 5 + Docutils 0.18 generates difficult to stylise markup for footnotes #10531
Comments
@pradyunsg -- c6e1964 was my attempt to fix this from a CSS perspective in Sphinx, although I agree with you on the root cause. I've uploaded a patch on bugs#450 that would resolve this, although (to my knowledge) there's no timeline yet on Docutils 0.19. A |
Looks like https://sourceforge.net/p/docutils/bugs/450/ has been fixed, yay. Are any followup changes necessary in Furo and/or Sphinx? I'm just a Furo + Sphinx user following along here and wanting to make sure I'm tracking any necessary followup work so I know when it's safe to upgrade again. Thanks for the great work on these awesome projects! |
Docutils 0.19 will be released early July, all being well. The earliest Sphinx that would support it would be 5.1 most likely, and after that Furo would need to be updated. We could also probably add a patch in Sphinx for Docutils==0.18 to use the 0.19 behaviour - I might have time to work on this over the weekend. (If I remember!) A |
Any way for me to test the fix? I'm not sure how to get the patched in-development sources from SourceForge. :/ |
See the Docutils HEAD job in tox.ini (used by the weekly workflow) Edit: run A |
Thanks, @AA-Turner! Will keep following this issue for updates (along with any new issues or PRs I see referencing this issue). Look forward to upgrading once this is fixed. |
See also #10599 A |
* Update _orderedbidict.py with an additional type annotation required by the lastest version of pyright. * Pin to docutils 0.17.1 while sphinx-doc/sphinx#10531 is unfixed.
Closed by #10599 and Docutils changes. A |
Describe the bug
With docutils 0.18, the markup generated for footnotes is difficult to stylise in a manner consistent with docutils 0.17. Since Sphinx 5 allows the use of docutils 0.18, this means that Sphinx themes have to now try to work with this more-difficult-to-stylise-consistently markup.
How to Reproduce
Expected behavior
The markup would not change in Sphinx 5, preserving the same grouping as Sphinx 4 had permitted. Or, it would group the label + backref in a div and the paragraphs in a separate div, similar to the dd + dt style of Sphinx 4.
Your project
https://github.com/pradyunsg/furo/
Screenshots
No response
OS
N/A
Python version
N/A
Sphinx version
5.x
Sphinx extensions
No response
Extra tools
No response
Additional context
I've filed https://sourceforge.net/p/docutils/bugs/450/ for this, in docutils. I'm filing this to partly flag this issue/concern to Sphinx's maintainers/contributors as well as other theme authors. :)
Footnotes
The following markup in a
.rst
file is sufficient to reproduce this:You can probably get away with an empty
conf.py
file. ↩The text was updated successfully, but these errors were encountered: