docs: use recommonmark as an extension

- source_parsers deprecated in sphinx 3.0
- Since sphinx 1.4, it can (should) be used as a direct extension:
  https://github.com/readthedocs/recommonmark/pull/43
This commit is contained in:
Richard Darst
2020-04-16 16:59:05 +03:00
parent c234463a67
commit e882e7954c

View File

@@ -20,6 +20,7 @@ extensions = [
'autodoc_traits',
'sphinx_copybutton',
'sphinx-jsonschema',
'recommonmark',
]
templates_path = ['_templates']
@@ -66,8 +67,6 @@ def setup(app):
app.add_transform(AutoStructify)
source_parsers = {'.md': 'recommonmark.parser.CommonMarkParser'}
source_suffix = ['.rst', '.md']
# source_encoding = 'utf-8-sig'