Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e385d066
Commit
e385d066
authored
Oct 13, 2018
by
Stéphane Wirtel
Committed by
Julien Palard
Oct 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34967: Sphinx is deprecating add_description_unit, use add_object_type (GH-9827)
parent
f6c29a65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Doc/tools/extensions/pyspecific.py
Doc/tools/extensions/pyspecific.py
+3
-5
Misc/NEWS.d/next/Documentation/2018-10-13-07-39-57.bpo-34967.E40tFP.rst
...xt/Documentation/2018-10-13-07-39-57.bpo-34967.E40tFP.rst
+2
-0
No files found.
Doc/tools/extensions/pyspecific.py
View file @
e385d066
...
@@ -424,11 +424,9 @@ def setup(app):
...
@@ -424,11 +424,9 @@ def setup(app):
app.add_directive('deprecated-removed', DeprecatedRemoved)
app.add_directive('deprecated-removed', DeprecatedRemoved)
app.add_builder(PydocTopicsBuilder)
app.add_builder(PydocTopicsBuilder)
app.add_builder(suspicious.CheckSuspiciousMarkupBuilder)
app.add_builder(suspicious.CheckSuspiciousMarkupBuilder)
app.add_description_unit('opcode', 'opcode', '%s (opcode)',
app.add_object_type('opcode', 'opcode', '%s (opcode)', parse_opcode_signature)
parse_opcode_signature)
app.add_object_type('pdbcommand', 'pdbcmd', '%s (pdb command)', parse_pdb_command)
app.add_description_unit('pdbcommand', 'pdbcmd', '%s (pdb command)',
app.add_object_type('2to3fixer', '2to3fixer', '%s (2to3 fixer)')
parse_pdb_command)
app.add_description_unit('2to3fixer', '2to3fixer', '%s (2to3 fixer)')
app.add_directive_to_domain('py', 'decorator', PyDecoratorFunction)
app.add_directive_to_domain('py', 'decorator', PyDecoratorFunction)
app.add_directive_to_domain('py', 'decoratormethod', PyDecoratorMethod)
app.add_directive_to_domain('py', 'decoratormethod', PyDecoratorMethod)
app.add_directive_to_domain('py', 'coroutinefunction', PyCoroutineFunction)
app.add_directive_to_domain('py', 'coroutinefunction', PyCoroutineFunction)
...
...
Misc/NEWS.d/next/Documentation/2018-10-13-07-39-57.bpo-34967.E40tFP.rst
0 → 100644
View file @
e385d066
Use app.add_object_type() instead of the deprecated Sphinx function
app.description_unit()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment