Skip to content

Commit ae07ced

Browse files
committed
conf.py: drop '.h' docs rendering (nothing to build); fix deprecated 'source_parsers' usage
1 parent cb818ca commit ae07ced

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

conf.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import sys
1818
import os
1919

20-
from recommonmark.parser import CommonMarkParser
20+
import recommonmark
2121

2222
# If extensions (or modules to document with autodoc) are in another directory,
2323
# add these directories to sys.path here. If the directory is relative to the
@@ -55,16 +55,20 @@
5555
'sphinx.ext.todo',
5656
'sphinx.ext.coverage',
5757
'rstjinja',
58-
'c2rst'
58+
'c2rst',
59+
'recommonmark',
5960
]
6061

6162
# Add any paths that contain templates here, relative to this directory.
6263
templates_path = ['templates']
6364

6465
# The suffix of source filenames.
65-
source_suffix = ['.rst', '.md', '.c', '.h']
66+
source_suffix = {
67+
'.rst': 'restructuredtext',
68+
'.md': 'markdown',
69+
'.c': ''
70+
}
6671

67-
source_parsers = {'.md': CommonMarkParser}
6872

6973
# The encoding of source files.
7074
#source_encoding = 'utf-8-sig'

0 commit comments

Comments
 (0)