Skip to content

Commit 45c05cf

Browse files
committed
myst works but not with mermaid
probably related to executablebooks/MyST-Parser#742 and executablebooks/MyST-Parser#366 and needing ```{mermaid} instead of the usual ```mermaid that renders in GitHub, Typora, etc.
1 parent 4bee459 commit 45c05cf

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

docs/conf.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
extensions = [
3434
'sphinx.ext.autodoc',
3535
'numpydoc',
36-
'm2r2',
36+
'myst_parser',
3737
'sphinxcontrib.mermaid',
3838
]
3939

@@ -63,12 +63,6 @@
6363
'.md': 'markdown',
6464
}
6565

66-
# Map the markdown files to the m2r2 parser
67-
source_parsers = {
68-
'.md': 'm2r2.parser.M2RParser',
69-
}
70-
71-
7266
# Copy ./examples/results images into documentation so they show up when
7367
# markdown files with relative paths are transcluded (suggested by ChatGPT-4)
7468
import os

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Welcome to elsim's documentation!
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13-
.. mdinclude:: ../README.md
14-
13+
.. include:: ../README.md
14+
:parser: myst_parser.sphinx_
1515

1616

1717
Indices and tables

0 commit comments

Comments
 (0)