summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelissa Weber Mendonça <melissawm@gmail.com>2021-05-27 06:52:05 -0300
committerGitHub <noreply@github.com>2021-05-27 11:52:05 +0200
commit89da72353f5e282a36a8e9ad9012400dbe452ced (patch)
treec5debdee11879018726ca913af39471f0954d6ce
parentf7e6e512105c0a26917d00f597b11efe0de97375 (diff)
downloadnumpy-89da72353f5e282a36a8e9ad9012400dbe452ced.tar.gz
MAINT: replace imgmath with mathjax for docs (#19036)
-rw-r--r--.gitmodules3
m---------doc/source/_static/scipy-mathjax0
-rw-r--r--doc/source/conf.py6
3 files changed, 6 insertions, 3 deletions
diff --git a/.gitmodules b/.gitmodules
index e69de29bb..0d6857868 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "doc/source/_static/scipy-mathjax"]
+ path = doc/source/_static/scipy-mathjax
+ url = https://github.com/scipy/scipy-mathjax.git
diff --git a/doc/source/_static/scipy-mathjax b/doc/source/_static/scipy-mathjax
new file mode 160000
+Subproject 3d21c58225c09243d5a088b1557654d280925e0
diff --git a/doc/source/conf.py b/doc/source/conf.py
index bf2fbdce9..5ba7f70b8 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -83,11 +83,9 @@ extensions = [
'matplotlib.sphinxext.plot_directive',
'IPython.sphinxext.ipython_console_highlighting',
'IPython.sphinxext.ipython_directive',
- 'sphinx.ext.imgmath',
+ 'sphinx.ext.mathjax',
]
-imgmath_image_format = 'svg'
-
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -188,6 +186,8 @@ if 'sphinx.ext.pngmath' in extensions:
pngmath_use_preview = True
pngmath_dvipng_args = ['-gamma', '1.5', '-D', '96', '-bg', 'Transparent']
+mathjax_path = "scipy-mathjax/MathJax.js?config=scipy-mathjax"
+
plot_html_show_formats = False
plot_html_show_source_link = False