|
38 | 38 | 'sphinx.ext.viewcode', |
39 | 39 | 'sphinx.ext.napoleon', |
40 | 40 | 'sphinx.ext.ifconfig', |
41 | | - 'nbsphinx', |
42 | | - 'myst_parser', |
| 41 | + 'myst_nb', |
43 | 42 | 'sphinx_markdown_tables', |
44 | 43 | 'readthedocs_ext.readthedocs',] |
45 | 44 |
|
46 | | -nbsphinx_allow_errors = True |
47 | | - |
48 | 45 | # read the docs version used for links |
49 | 46 | if 'dev' in __version__: |
50 | 47 | read_docs_url = 'en/latest/' |
|
54 | 51 | # Add any paths that contain templates here, relative to this directory. |
55 | 52 | templates_path = [] |
56 | 53 |
|
57 | | -# The suffix of source filenames. |
58 | | -source_suffix = { |
59 | | - ".rst": "restructuredtext", |
60 | | - ".md": "markdown", |
61 | | -} |
62 | | - |
63 | 54 | # The encoding of source files. |
64 | 55 | #source_encoding = 'utf-8' |
65 | 56 |
|
@@ -247,6 +238,28 @@ def remove_module_docstring(app, what, name, obj, options, lines): |
247 | 238 |
|
248 | 239 | autodoc_member_order = "bysource" |
249 | 240 |
|
| 241 | +# --- MYST Parser settings ---- |
| 242 | + |
| 243 | +# Jupyter Notebooks will not be executed when creating the docs |
| 244 | +nb_execution_mode = "off" |
| 245 | + |
| 246 | +# Extensions, see https://myst-parser.readthedocs.io/en/latest/configuration.html#list-of-syntax-extensions |
| 247 | +myst_enable_extensions = [ |
| 248 | + "amsmath", |
| 249 | + "colon_fence", |
| 250 | + "deflist", |
| 251 | + "dollarmath", |
| 252 | + "html_image", |
| 253 | +] |
| 254 | + |
| 255 | +# URI schemes that are converted to external links |
| 256 | +myst_url_schemes = ("http", "https", "mailto") |
| 257 | + |
| 258 | +# Generate heading anchors for linking to them, up to heading level 4 |
| 259 | +myst_heading_anchors = 4 |
| 260 | + |
| 261 | +# --- |
| 262 | + |
250 | 263 | def setup(app): |
251 | 264 | app.connect("autodoc-skip-member", skip) |
252 | 265 | app.connect("autodoc-process-docstring", remove_module_docstring) |
|
0 commit comments