Commit 063ee4be authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Use myst-parser instead of recommonmark

parent 7c6db348
......@@ -18,7 +18,7 @@ sys.path.insert(0, os.path.abspath('../'))
# -- Project information -----------------------------------------------------
project = 'Nabu'
copyright = '2020, ESRF'
copyright = '2021, ESRF'
author = 'Pierre Paleo'
# The full version, including alpha/beta/rc tags
......@@ -31,18 +31,37 @@ author = 'Pierre Paleo'
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'recommonmark',
'myst_parser',
'sphinx.ext.autosectionlabel',
# 'numpydoc',
'sphinx.ext.napoleon',
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'nbsphinx',
# 'nbsphinx',
# 'sphinx.ext.autosummary',
# 'sphinx.ext.doctest',
# 'sphinx.ext.inheritance_diagram',
]
#myst_commonmark_only = True
# for myst
suppress_warnings = [
"myst.header", # non-consecutive headers levels
]
myst_heading_anchors = 3
myst_enable_extensions = [
# "amsmath",
# # "colon_fence",
# # "deflist",
# "dollarmath",
# "html_admonition",
# "html_image",
# "linkify",
# # "replacements",
# # "smartquotes",
# # "substitution"
]
#
#autosummary_generate = True
autodoc_member_order = 'bysource'
......@@ -89,7 +108,7 @@ html_theme_options = {
mathjax_path = 'javascript/MathJax-3.0.5/es5/tex-mml-chtml.js'
"""
# For recommonmark
from recommonmark.transform import AutoStructify
github_doc_root = 'https://github.com/rtfd/recommonmark/tree/master/doc/'
......@@ -101,7 +120,7 @@ def setup(app):
'enable_inline_math': True,
}, True)
app.add_transform(AutoStructify)
"""
# Document __init__
autoclass_content = 'both'
......
......@@ -30,7 +30,7 @@ def setup_package():
doc_requires = [
'sphinx',
'cloud_sptheme',
'recommonmark',
'myst-parser',
'nbsphinx',
]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment