Revert "singlehtml: deprecate the 'fix_refuris' helper function (#13037)" - #14241
Revert "singlehtml: deprecate the 'fix_refuris' helper function (#13037)"#14241jayaddison wants to merge 16 commits into
Conversation
Specifically, check for duplication of the HTML anchor fragment delimiter character (`#`). Co-authored-by: @etrian-dev
…nx-doc#13037)" This reverts commit c93723b. Conflicts: CHANGES.rst doc/extdev/deprecated.rst sphinx/builders/singlehtml.py
|
Self-quoting:
Please refer to this comment for the results of this investigation: #14221 (comment) |
|
Hi, just checking if there is any feedback on this PR. Thanks |
|
It would be helpful to fix the singlethml builds for sphinx 9.x therefore 👍 for this PR. |
|
Hi @kreuzberger . Thank you for the feedback. I might try to fix those if I have time. For the Python 3.12 check only one failed test, as far as I can see. It has been reported to be unreliable in #14104 |
|
This depends on #14240, that is ready for review. |
…nx-doc#13037)" This reverts commit c93723b. Conflicts: CHANGES.rst doc/extdev/deprecated.rst sphinx/builders/singlehtml.py
Relates-to commit d93fa09.
Co-authored-by: James Addison <jay@jp-hosting.net>
Duplicate (re)definitions of the same term are not required to replicate sphinx-doc#14221
Duplicate (re)definitions of the same term are not required to replicate sphinx-doc#14221
|
The latest unit test failures (e.g. on cf5af53) seem to relate to HTML encoding differences - single-quotes and double-quotes are no-longer HTMLescaped by Sphinx (to I'm not sure what has caused that behaviour to change, though. Perhaps the Python version used by the GitHub runners has updated with a security fix? I'll report a CI failure issue, and have some local changes prepared that should fix it -- but it would be good to figure out why it happened. |
jdillard
left a comment
There was a problem hiding this comment.
This should be the last review comment, I don't think I see anything else in the code.
Related: The Purpose section of the PR description is now out of sync with the implementation and says that fix_refuris should remain deprecated.
Co-authored-by: Jared Dillard <jared.dillard+github@gmail.com>
Purpose
As reported in #14221, the
fix_refurismethod does appear to prevent duplicate fragment delimiters (the#character) from appearing in the hyperlinks output by thesinglehtmlbuilder.In my opinion we should still consider
fix_refurisdeprecated -- I'd still like to remove it, since it seems like an unnecessary post-processing of the documents; but additional investigation is required to confirm what it does and whether a better alternative mechanism can be found.References