Remove deprecated Sphinx directive add_description_unit()
Partial solution for https://github.com/pytest-dev/pytest/issues/4912
This commit is contained in:
parent
74416525d2
commit
134b957bf4
|
@ -0,0 +1 @@
|
||||||
|
Remove deprecated Sphinx directive, ``add_description_unit()``.
|
|
@ -335,7 +335,7 @@ intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# from sphinx.ext.autodoc import cut_lines
|
# from sphinx.ext.autodoc import cut_lines
|
||||||
# app.connect('autodoc-process-docstring', cut_lines(4, what=['module']))
|
# app.connect('autodoc-process-docstring', cut_lines(4, what=['module']))
|
||||||
app.add_description_unit(
|
app.add_object_type(
|
||||||
"confval",
|
"confval",
|
||||||
"confval",
|
"confval",
|
||||||
objname="configuration value",
|
objname="configuration value",
|
||||||
|
|
Loading…
Reference in New Issue