summaryrefslogtreecommitdiff
path: root/dev-python/recommonmark/files/recommonmark-0.6.0-sphinx3-1.patch
blob: f628630c2009d10c40ebca517c995a16e39edf66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
https://bugs.gentoo.org/723468#c4
By Anon Emuss <abuslbea@centurylink.net>
----
Update tests for sphinx-3

The deprecated source_parsers no longer works with sphinx-3.  Modify
conf.py files to use the recommonmark extension, which sphinx supports.

Tested and appears to work with sphinx-2.4.4 and sphinx-3.2.1.

diff --git a/tests/sphinx_code_block/conf.py b/tests/sphinx_code_block/conf.py
index 6b0140e..ddfafd5 100644
--- a/tests/sphinx_code_block/conf.py
+++ b/tests/sphinx_code_block/conf.py
@@ -1,11 +1,9 @@
 
 # -*- coding: utf-8 -*-
 
-from recommonmark.parser import CommonMarkParser
-
 templates_path = ['_templates']
-source_suffix = '.md'
-source_parsers = { '.md': CommonMarkParser }
+extensions = ['recommonmark']
+source_suffix = { '.md': 'markdown' }
 master_doc = 'index'
 project = u'sphinxproj'
 copyright = u'2015, rtfd'
diff --git a/tests/sphinx_custom_md/conf.py b/tests/sphinx_custom_md/conf.py
index b29157b..9073346 100644
--- a/tests/sphinx_custom_md/conf.py
+++ b/tests/sphinx_custom_md/conf.py
@@ -1,12 +1,11 @@
 
 # -*- coding: utf-8 -*-
 
-from recommonmark.parser import CommonMarkParser
 from recommonmark.transform import AutoStructify
 
 templates_path = ['_templates']
-source_suffix = '.markdown'
-source_parsers = { '.markdown': CommonMarkParser }
+extensions = ['recommonmark']
+source_suffix = { '.markdown': 'markdown' }
 master_doc = 'index'
 project = u'sphinxproj'
 copyright = u'2015, rtfd'
diff --git a/tests/sphinx_generic/conf.py b/tests/sphinx_generic/conf.py
index 6b0140e..ddfafd5 100644
--- a/tests/sphinx_generic/conf.py
+++ b/tests/sphinx_generic/conf.py
@@ -1,11 +1,9 @@
 
 # -*- coding: utf-8 -*-
 
-from recommonmark.parser import CommonMarkParser
-
 templates_path = ['_templates']
-source_suffix = '.md'
-source_parsers = { '.md': CommonMarkParser }
+extensions = ['recommonmark']
+source_suffix = { '.md': 'markdown' }
 master_doc = 'index'
 project = u'sphinxproj'
 copyright = u'2015, rtfd'
diff --git a/tests/sphinx_indented_code/conf.py b/tests/sphinx_indented_code/conf.py
index f441071..90c5692 100644
--- a/tests/sphinx_indented_code/conf.py
+++ b/tests/sphinx_indented_code/conf.py
@@ -1,11 +1,9 @@
 
 # -*- coding: utf-8 -*-
 
-from recommonmark.parser import CommonMarkParser
-
 templates_path = ['_templates']
-source_suffix = '.md'
-source_parsers = { '.md': CommonMarkParser }
+extensions = ['recommonmark']
+source_suffix = { '.md': 'markdown' }
 master_doc = 'index'
 project = u'sphinxproj'
 copyright = u'2015, rtfd'
diff --git a/tests/sphinx_nested_header_block/conf.py b/tests/sphinx_nested_header_block/conf.py
index 6b0140e..ddfafd5 100644
--- a/tests/sphinx_nested_header_block/conf.py
+++ b/tests/sphinx_nested_header_block/conf.py
@@ -1,11 +1,9 @@
 
 # -*- coding: utf-8 -*-
 
-from recommonmark.parser import CommonMarkParser
-
 templates_path = ['_templates']
-source_suffix = '.md'
-source_parsers = { '.md': CommonMarkParser }
+extensions = ['recommonmark']
+source_suffix = { '.md': 'markdown' }
 master_doc = 'index'
 project = u'sphinxproj'
 copyright = u'2015, rtfd'
diff --git a/tests/sphinx_xref/conf.py b/tests/sphinx_xref/conf.py
index 443a026..acd840b 100644
--- a/tests/sphinx_xref/conf.py
+++ b/tests/sphinx_xref/conf.py
@@ -1,14 +1,11 @@
 
 # -*- coding: utf-8 -*-
 
-from recommonmark.parser import CommonMarkParser
-
-extensions = 'sphinx.ext.autosectionlabel']
+extensions = ['sphinx.ext.autosectionlabel', 'recommonmark']
 autosectionlabel_prefix_document = True
 
 templates_path = ['_templates']
-source_suffix = '.md'
-source_parsers = { '.md': CommonMarkParser }
+source_suffix = { '.md': 'markdown' }
 master_doc = 'index'
 project = u'sphinxproj'
 copyright = u'2015, rtfd'