mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
GH-125722: Increase minimum supported Sphinx to 8.1.3 (#128922)
This commit is contained in:
parent
bca35f0e78
commit
d46b577ec0
7 changed files with 13 additions and 96 deletions
|
@ -16,7 +16,6 @@ import dataclasses
|
|||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import sphinx
|
||||
from docutils import nodes
|
||||
from docutils.statemachine import StringList
|
||||
from sphinx import addnodes
|
||||
|
@ -285,16 +284,6 @@ def setup(app: Sphinx) -> ExtensionMetadata:
|
|||
app.connect("builder-inited", init_annotations)
|
||||
app.connect("doctree-read", add_annotations)
|
||||
|
||||
if sphinx.version_info[:2] < (7, 2):
|
||||
from docutils.parsers.rst import directives
|
||||
from sphinx.domains.c import CObject
|
||||
|
||||
# monkey-patch C object...
|
||||
CObject.option_spec |= {
|
||||
"no-index-entry": directives.flag,
|
||||
"no-contents-entry": directives.flag,
|
||||
}
|
||||
|
||||
return {
|
||||
"version": "1.0",
|
||||
"parallel_read_safe": True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue