Skip to content

Commit 1bd727c

Browse files
Docs: Migrate from m2r2 to MyST parser
1 parent 35426fc commit 1bd727c

File tree

6 files changed

+24
-10
lines changed

6 files changed

+24
-10
lines changed

dir_content_diff/comparators/voxcell.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ class Mvd3Comparator(DataframeComparator):
119119
Note: MVD3 files can contain their creation date, so their hashes are depends on
120120
this creation date, even if the data are the same.
121121
122-
This comparator inherits from the :class:`dir_content_diff.pandas.DataframeComparator`, read
122+
This comparator inherits from the
123+
:class:`dir_content_diff.comparators.pandas.DataframeComparator`, read
123124
the doc of this comparator for details on args and kwargs.
124125
"""
125126

@@ -135,7 +136,8 @@ def save(self, data, path, **kwargs):
135136
class CellCollectionComparator(DataframeComparator):
136137
"""Comparator for any type of CellCollection file.
137138
138-
This comparator inherits from the :class:`dir_content_diff.pandas.DataframeComparator`, read
139+
This comparator inherits from the
140+
:class:`dir_content_diff.comparators.pandas.DataframeComparator`, read
139141
the doc of this comparator for details on args and kwargs.
140142
"""
141143

docs/source/changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.. mdinclude:: ../../CHANGELOG.md
1+
.. include:: ../../CHANGELOG.md
2+
:parser: myst_parser.sphinx_

docs/source/conf.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4040
# ones.
4141
extensions = [
42+
"myst_parser",
4243
"sphinx.ext.autodoc",
4344
"sphinx.ext.autosummary",
4445
"sphinx.ext.intersphinx",
4546
"sphinx.ext.napoleon",
4647
"sphinx.ext.todo",
47-
"m2r2",
4848
]
4949

5050
todo_include_todos = True
@@ -91,7 +91,17 @@
9191
}
9292

9393
intersphinx_mapping = {
94-
"python": ("https://docs.python.org/3", None),
95-
"pandas": ("https://pandas.pydata.org/docs", None),
9694
"dictdiffer": ("https://dictdiffer.readthedocs.io/en/latest/", None),
95+
"morph_tool": ("https://morph-tool.readthedocs.io/en/latest/", None),
96+
"morphio": ("https://morphio.readthedocs.io/en/latest/", None),
97+
"numpy": ("https://numpy.org/doc/stable/", None),
98+
"pandas": ("https://pandas.pydata.org/docs", None),
99+
"python": ("https://docs.python.org/3", None),
100+
"voxcell": ("https://voxcell.readthedocs.io/en/latest/", None),
97101
}
102+
103+
# MyST parser settings
104+
myst_enable_extensions = []
105+
myst_heading_anchors = 5
106+
myst_all_links_external = True
107+
suppress_warnings = ["myst.header"]

docs/source/contributing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.. mdinclude:: ../../CONTRIBUTING.md
1+
.. include:: ../../CONTRIBUTING.md
2+
:parser: myst_parser.sphinx_

docs/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.. mdinclude:: ../../README.md
1+
.. include:: ../../README.md
2+
:parser: myst_parser.sphinx_
23

34

45
.. toctree::

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
from setuptools import setup
1616

1717
doc_reqs = [
18-
"docutils<0.21", # Temporary fix for m2r2
19-
"m2r2",
18+
"myst_parser",
2019
"sphinx",
2120
"sphinx-bluebrain-theme",
2221
]

0 commit comments

Comments
 (0)