From da9f8de0e34c5798289bd519a9a1b88103f8bbcb Mon Sep 17 00:00:00 2001 From: Tim Head Date: Mon, 8 Apr 2019 07:51:30 +0200 Subject: [PATCH] Update recommonmark ocnfiguration In new versions of SPhinx the way we were configuring the recommonmark extension has become deprecated. This switches us to the new way of configuring it. --- docs/source/conf.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index db48d094..534ee7b6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -21,8 +21,6 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) -# For conversion from markdown to html -import recommonmark.parser # -- General configuration ------------------------------------------------ @@ -35,6 +33,7 @@ import recommonmark.parser # ones. extensions = ['sphinx.ext.extlinks', 'sphinxcontrib.autoprogram', + 'recommonmark', ] extlinks = { @@ -46,10 +45,6 @@ extlinks = { # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] -# source parser -source_parsers = { - '.md': 'recommonmark.parser.CommonMarkParser', -} from recommonmark.transform import AutoStructify