File sphinx2.0.patch of Package python-pytest (Revision f213a27bb0b551d0feba19a4a1390029)
Currently displaying revision f213a27bb0b551d0feba19a4a1390029 , Show latest
xxxxxxxxxx
1
From 134b957bf42ef92f892ace04651c87ab6d09999f Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
3
Date: Thu, 14 Mar 2019 12:15:05 +0100
4
Subject: [PATCH] Remove deprecated Sphinx directive add_description_unit()
5
6
Partial solution for https://github.com/pytest-dev/pytest/issues/4912
7
---
8
doc/en/conf.py | 2 +-
9
2 files changed, 2 insertions(+), 1 deletion(-)
10
create mode 100644 changelog/4912.trivial.rst
11
12
diff --git a/doc/en/conf.py b/doc/en/conf.py
13
index 74a43596e..5daa15a06 100644
14
--- a/doc/en/conf.py
15
+++ b/doc/en/conf.py
16
17
def setup(app):
18
# from sphinx.ext.autodoc import cut_lines
19
# app.connect('autodoc-process-docstring', cut_lines(4, what=['module']))
20
- app.add_description_unit(
21
+ app.add_object_type(
22
"confval",
23
"confval",
24
objname="configuration value",
25