Support Docutils 0.22 (#13786)

This commit is contained in:
Adam Turner authored and GitHub committed 2025-07-29 18:44:31 +01:00
1 parent e00e771b65
commit 5d3bb2e3b7
6 files changed
+9 -5

No files matched your search

+4
View File
@@ -4,6 +4,10 @@ Release 8.3.0 (in development)
Dependencies Dependencies
------------ ------------
* #13786: Support `Docutils 0.22`_. Patch by Adam Turner.
.. _Docutils 0.22: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-22-2026-07-29
Incompatible changes Incompatible changes
-------------------- --------------------
+1 -1
View File
@@ -86,7 +86,7 @@ Dependencies
* #11858: Increase the minimum supported version of Alabaster to 0.7.14. * #11858: Increase the minimum supported version of Alabaster to 0.7.14.
Patch by Adam Turner. Patch by Adam Turner.
* #11411: Support `Docutils 0.21`_. Patch by Adam Turner. * #12267: Support `Docutils 0.21`_. Patch by Adam Turner.
.. _Docutils 0.21: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-21-2024-04-09 .. _Docutils 0.21: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-21-2024-04-09
* #12012: Use ``types-docutils`` instead of ``docutils-stubs``. * #12012: Use ``types-docutils`` instead of ``docutils-stubs``.
+1 -1
View File
@@ -76,7 +76,7 @@ dependencies = [
"sphinxcontrib-serializinghtml>=1.1.9", "sphinxcontrib-serializinghtml>=1.1.9",
"Jinja2>=3.1", "Jinja2>=3.1",
"Pygments>=2.17", "Pygments>=2.17",
"docutils>=0.20,<0.22", "docutils>=0.20,<0.23",
"snowballstemmer>=2.2", "snowballstemmer>=2.2",
"babel>=2.13", "babel>=2.13",
"alabaster>=0.7.14", "alabaster>=0.7.14",
+1 -1
View File
@@ -372,7 +372,7 @@ class SphinxSmartQuotes(SmartQuotes, SphinxTransform):
# override default settings with :confval:`smartquotes_action` # override default settings with :confval:`smartquotes_action`
self.smartquotes_action = self.config.smartquotes_action self.smartquotes_action = self.config.smartquotes_action
super().apply() # type: ignore[no-untyped-call] super().apply()
def is_available(self) -> bool: def is_available(self) -> bool:
builders = self.config.smartquotes_excludes.get('builders', []) builders = self.config.smartquotes_excludes.get('builders', [])
+1 -1
View File
@@ -25,7 +25,7 @@ class SphinxDanglingReferences(DanglingReferences):
# suppress INFO level messages for a while # suppress INFO level messages for a while
reporter.report_level = max(reporter.WARNING_LEVEL, reporter.report_level) reporter.report_level = max(reporter.WARNING_LEVEL, reporter.report_level)
super().apply() # type: ignore[no-untyped-call] super().apply()
finally: finally:
reporter.report_level = report_level reporter.report_level = report_level
+1 -1
View File
@@ -62,7 +62,7 @@ def parse(new_document):
document = new_document() document = new_document()
parser = RstParser() parser = RstParser()
parser.parse(rst, document) parser.parse(rst, document)
SphinxSmartQuotes(document, startnode=None).apply() # type: ignore[no-untyped-call] SphinxSmartQuotes(document, startnode=None).apply()
for msg in list(document.findall(nodes.system_message)): for msg in list(document.findall(nodes.system_message)):
if msg['level'] == 1: if msg['level'] == 1:
msg.replace_self([]) msg.replace_self([])