8000 Merge pull request #19238 from charris/backport-19036 · numpy/numpy@8171b01 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8171b01

Browse files
authored
Merge pull request #19238 from charris/backport-19036
MAINT: replace imgmath with mathjax for docs
2 parents a218e53 + 2aab9c8 commit 8171b01

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "doc/source/_static/scipy-mathjax"]
2+
path = doc/source/_static/scipy-mathjax
3+
url = https://github.com/scipy/scipy-mathjax.git

doc/source/_static/scipy-mathjax

Submodule scipy-mathjax added at 3d21c58

doc/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ class PyTypeObject(ctypes.Structure):
8383
'matplotlib.sphinxext.plot_directive',
8484
'IPython.sphinxext.ipython_console_highlighting',
8585
'IPython.sphinxext.ipython_directive',
86-
'sphinx.ext.imgmath',
86+
'sphinx.ext.mathjax',
8787
]
8888

89-
imgmath_image_format = 'svg'
90-
9189
# Add any paths that contain templates here, relative to this directory.
9290
templates_path = ['_templates']
9391

@@ -188,6 +186,8 @@ def setup(app):
188186
pngmath_use_preview = True
189187
pngmath_dvipng_args = ['-gamma', '1.5', '-D', '96', '-bg', 'Transparent']
190188

189+
mathjax_path = "scipy-mathjax/MathJax.js?config=scipy-mathjax"
190+
191191
plot_html_show_formats = False
192192
plot_html_show_source_link = False
193193

0 commit comments

Comments
 (0)
0