summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsommersoft <sommersoft@gmail.com>2020-04-09 08:49:32 -0500
committersommersoft <sommersoft@gmail.com>2020-04-09 08:49:32 -0500
commitae07ced795e51653ce6d69e5a2d30688ca420dd4 (patch)
tree9544751642633891b5924c7c50d48d72327f10ff
parentcb818ca83266af6eae846bdc6e4be5f8fe722e6e (diff)
conf.py: drop '.h' docs rendering (nothing to build); fix deprecated 'source_parsers' usage
-rw-r--r--conf.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/conf.py b/conf.py
index f71e09adc..19542ad9f 100644
--- a/conf.py
+++ b/conf.py
@@ -17,7 +17,7 @@ import json
import sys
import os
-from recommonmark.parser import CommonMarkParser
+import recommonmark
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -55,16 +55,20 @@ extensions = [
'sphinx.ext.todo',
'sphinx.ext.coverage',
'rstjinja',
- 'c2rst'
+ 'c2rst',
+ 'recommonmark',
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['templates']
# The suffix of source filenames.
-source_suffix = ['.rst', '.md', '.c', '.h']
+source_suffix = {
+ '.rst': 'restructuredtext',
+ '.md': 'markdown',
+ '.c': ''
+}
-source_parsers = {'.md': CommonMarkParser}
# The encoding of source files.
#source_encoding = 'utf-8-sig'