Skip to content

Commit

Permalink
Merge pull request #6807 from telamonian/fix-sphinx-source-parsers-wa…
Browse files Browse the repository at this point in the history
…rning

fixed sphinx warning for deprecated source_parsers config field
  • Loading branch information
ian-r-rose committed Jul 12, 2019
2 parents ee4dae8 + 3d5f8a8 commit 2083f7b
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# sys.path.insert(0, os.path.abspath('.'))

# For conversion from markdown to html
import recommonmark.parser
from recommonmark.transform import AutoStructify


Expand All @@ -35,24 +34,24 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.intersphinx',
extensions = [
'recommonmark',
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx_copybutton']
'sphinx_copybutton'
]

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

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']

source_parsers = {
'.md': 'recommonmark.parser.CommonMarkParser',
# The file extensions of source files.
# Sphinx considers the files with this suffix as sources.
# The value can be a dictionary mapping file extensions to file types.
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown'
}

source_suffix = ['.rst', '.md']

# The master toctree document.
master_doc = 'index'

Expand Down

0 comments on commit 2083f7b

Please sign in to comment.