Skip to content

Commit 2e491d5

Browse files
committed
Switch to recommonmark for md to rst conversion
See also https://www.sphinx-doc.org/en/master/usage/markdown.html
1 parent bb79af8 commit 2e491d5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ python: 3.7
33
install:
44
- pip install Sphinx
55
- pip install git+https://github.com/bashtage/sphinx-material
6-
- pip install m2r2
6+
- pip install recommonmark
77
script: skip
88
deploy:
99
- provider: script

Diff for: conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@
2929
# Add any Sphinx extension module names here, as strings. They can be
3030
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3131
# ones.
32-
extensions = ['m2r2', 'sphinx_material']
32+
extensions = ['recommonmark', 'sphinx_material']
33+
34+
# see https://www.sphinx-doc.org/en/master/usage/markdown.html
35+
source_suffix = {
36+
'.rst': 'restructuredtext',
37+
'.md': 'markdown',
38+
}
3339

3440
# Add any paths that contain templates here, relative to this directory.
3541
templates_path = ['_templates']

0 commit comments

Comments
 (0)