mirror of
https://github.com/python/cpython.git
synced 2025-08-08 19:09:46 +00:00
[3.13] GH-125722: Increase minimum supported Sphinx to 8.1.3 (GH-128922) (#129037)
(cherry picked from commit d46b577ec0
)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
080d17e945
commit
5fe7650552
7 changed files with 14 additions and 100 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