Skip to content

Commit 6399687

Browse files
committed
ENH: Support both .md and .rst
[ci skip]
1 parent 4293b51 commit 6399687

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Docs/conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#
2020
import os
2121
# import sys
22+
23+
from recommonmark.parser import CommonMarkParser
24+
2225
# sys.path.insert(0, os.path.abspath('.'))
2326

2427

@@ -36,11 +39,15 @@
3639
# Add any paths that contain templates here, relative to this directory.
3740
templates_path = ['_templates']
3841

42+
source_parsers = {
43+
'.md': CommonMarkParser,
44+
}
45+
3946
# The suffix(es) of source filenames.
4047
# You can specify multiple suffix as a list of string:
4148
#
42-
# source_suffix = ['.rst', '.md']
43-
source_suffix = '.rst'
49+
source_suffix = ['.rst', '.md']
50+
#source_suffix = '.rst'
4451

4552
# The master toctree document.
4653
master_doc = 'index'

requirements-docs.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
docutils
22
pygments
3+
recommonmark
34
sphinx
45
sphinx-issues
56
sphinx_rtd_theme

0 commit comments

Comments
 (0)