mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.13] Docs: Fix duplicate object description warnings (GH-122068) (#122069)
Docs: Fix duplicate object description warnings (GH-122068)
(cherry picked from commit 8db5f48007
)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
2fff3c44b3
commit
7fc1006e31
3 changed files with 7 additions and 1 deletions
|
@ -18,11 +18,12 @@ from pprint import pformat
|
|||
import sphinx
|
||||
from docutils import nodes
|
||||
from docutils.io import StringOutput
|
||||
from docutils.parsers.rst import directives
|
||||
from docutils.utils import new_document, unescape
|
||||
from sphinx import addnodes
|
||||
from sphinx.builders import Builder
|
||||
from sphinx.domains.changeset import VersionChange, versionlabels, versionlabel_classes
|
||||
from sphinx.domains.python import PyFunction, PyMethod
|
||||
from sphinx.domains.python import PyFunction, PyMethod, PyModule
|
||||
from sphinx.errors import NoUri
|
||||
from sphinx.locale import _ as sphinx_gettext
|
||||
from sphinx.util import logging
|
||||
|
@ -49,6 +50,9 @@ from sphinx.domains import std
|
|||
|
||||
std.token_re = re.compile(r'`((~?[\w-]*:)?\w+)`')
|
||||
|
||||
# backport :no-index:
|
||||
PyModule.option_spec['no-index'] = directives.flag
|
||||
|
||||
|
||||
# Support for marking up and linking to bugs.python.org issues
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue