Skip to content

Commit

Permalink
[MAINT] change m2r to m2r2 (#909)
Browse files Browse the repository at this point in the history
* [skipci] change m2r to m2r2

* [skip ci] add legacy extention

* fix install

* [skip ci] version control docutils

* [skip ci] exclude compatability package

* [skip ci] use mermaid

* [skip ci] add comment
  • Loading branch information
jdkent authored Nov 18, 2024
1 parent 67cda97 commit d612a7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from distutils.version import LooseVersion

import sphinx
from m2r import MdInclude
from m2r2 import MdInclude
from sphinx_gallery.sorting import FileNameSortKey

sys.path.insert(0, os.path.abspath(os.path.pardir))
Expand Down Expand Up @@ -55,6 +55,7 @@
"sphinx_gallery.gen_gallery", # example gallery
"sphinxarg.ext", # argparse
"sphinxcontrib.bibtex", # for foot-citations
"sphinxcontrib.mermaid", # for mermaid diagrams
"recommonmark", # markdown parser
]

Expand Down Expand Up @@ -227,6 +228,7 @@ def setup(app):
app.add_config_value("m2r_parse_relative_links", False, "env")
app.add_config_value("m2r_anonymous_references", False, "env")
app.add_config_value("m2r_disable_inline_math", False, "env")
app.add_config_value("m2r_use_mermaid", True, "env")
app.add_directive("mdinclude", MdInclude)


Expand Down
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ gzip =
cbmr =
torch>=2.0 # for cbmr models
doc =
m2r
m2r2
matplotlib
mistune<2 # just temporary until m2r addresses this issue
mistune
pillow
recommonmark
seaborn
Expand All @@ -82,6 +82,8 @@ doc =
sphinx-gallery
sphinx_rtd_theme>=1.3.0
sphinxcontrib-bibtex
sphinxcontrib-mermaid
docutils>=0.18.1,<0.21 # https://github.com/orgs/sphinx-doc/discussions/13020
tests =
coverage
coveralls
Expand Down

0 comments on commit d612a7b

Please sign in to comment.