Repository navigation
Fix two test samples to avoid new Docutils warning. - #14540
Conversation
Docutils 1.0 warns if a figure has no caption and no legend, as this leads to an invalid document tree. The warning can be silenced by providing a caption (naturally) or by "cheating" with an empty comment. Use an empty comment here for a minimal change. Thanks to "ishaanlabs-gg" for a similar patch that showed the location of the problematic sample (but was unfortunately closed due to a missing AI-use declaration).
|
The remaining error with Docutils HEAD and LaTeX is a false positive because of insignificant line-breaks in the HTML output document: |
|
I think it is fine to add the other fix to this PR since it is a small fix. |
Docutils commit r10373 changed the formatting of the HTML source to improve readability (no change to normalized HTML or the rendering in a browser). The added insignificant newline leads to a "false-negative" in a Sphinx ebuild writer test. Using a regexp search instead of a fixed substring search allows to test for the correct output while ignoring insignificant whitespace. The fix is a "hand-revised" version of the second commit in PR sphinx-doc#14511 by ishaanlabs-gg (which was closed because of a missing AI disclosure). No AI was used by me in preparing this patch.
|
I added the second fix and updated the PR description. |
Add a comma after the last function argument in long function call.
|
The failing |
|
@picnixz I think this is the last of the fixes needed to get all CI checks functional again |
|
I'll merge this after the GH outage is resolved. |
|
Closing and re-opening to try and trigger the stale jobs from the GHA outage |
|
@picnixz All green now! Thanks for making sure CI got fixed @kaycebasques |
Purpose
Fix CI test failures with Docutils HEAD.
Docutils 1.0 warns if a figure has no caption and no legend, as this leads to an invalid document tree.
The warning can be silenced by providing a caption (naturally) or by "cheating" with an empty comment.
Use an empty comment here for a minimal change.
Docutils commit r10373 changed the formatting of the HTML source to improve
readability (no change to normalized HTML or the rendering in a browser).
The added insignificant newline leads to a "false-negative" in a
Sphinx ebuild writer test.
Using a regexp search instead of a fixed substring search allows to test for the
correct output while ignoring optional insignificant whitespace.
References
Closes #14508.
Thanks to "ishaanlabs-gg" for a similar patch (#14511) that showed the location of the problematic samples (but was unfortunately closed due to a missing AI-use declaration).
AI Disclosure
No AI tools used by me.
The patch #14511 (missing an AI disclosure) was consulted to find the location of the
offending test samples.