Skip to content

Commit

Permalink
Update readthedocs config to replace deprecated CommonMarkParser with…
Browse files Browse the repository at this point in the history
… MyST
  • Loading branch information
gwaldron committed Oct 23, 2023
1 parent 88db128 commit bdb1ca8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#sys.path.insert(0, os.path.abspath('.'))

# Markdown support
from recommonmark.parser import CommonMarkParser
#from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify

# -- General configuration -----------------------------------------------------
Expand All @@ -31,15 +31,16 @@
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx_markdown_tables',
'myst_parser'
]

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

# Add support for MarkDown
source_parsers = {
'.md': CommonMarkParser,
}
#source_parsers = {
# '.md': CommonMarkParser,
#}

# The suffix of source filenames.
source_suffix = ['.rst', '.md']
Expand Down Expand Up @@ -255,7 +256,7 @@
# Custom setup
def setup(app):
app.add_css_file('styles.css')
app.add_config_value('recommonmark_config', {
'enable_auto_toc_tree': True,
}, True)
#app.add_config_value('recommonmark_config', {
# 'enable_auto_toc_tree': True,
#}, True)
app.add_transform(AutoStructify)

0 comments on commit bdb1ca8

Please sign in to comment.