Skip to content

Commit

Permalink
Try to switch to myst now that it supports mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
endolith committed Nov 18, 2024
1 parent d608e28 commit 460652b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
11 changes: 7 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.extlinks',
'numpydoc',
'm2r2',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'sphinxcontrib.mermaid',
]
'myst_parser'
]

extlinks = {
'doi': ('https://dx.doi.org/%s', 'doi:%s'),
Expand Down Expand Up @@ -88,3 +88,6 @@ def copy_examples(app, docname):

def setup(app):
app.connect('build-finished', copy_examples)

# Add this to enable regular markdown mermaid syntax
myst_fence_as_directive = ["mermaid"]
7 changes: 2 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
sphinx<7.0
docutils==0.16
mistune==0.8.4
m2r2
myst-parser
sphinxcontrib.mermaid
-e .
numpydoc
sphinxcontrib.mermaid
sphinx_rtd_theme
sphinxcontrib-apidoc

0 comments on commit 460652b

Please sign in to comment.