Skip to content

Commit

Permalink
MAINT: replace imgmath with mathjax for docs (numpy#19036)
Browse files Browse the repository at this point in the history
  • Loading branch information
melissawm authored May 27, 2021
1 parent f7e6e51 commit 89da723
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "doc/source/_static/scipy-mathjax"]
path = doc/source/_static/scipy-mathjax
url = https://github.com/scipy/scipy-mathjax.git
1 change: 1 addition & 0 deletions doc/source/_static/scipy-mathjax
Submodule scipy-mathjax added at 3d21c5
6 changes: 3 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ class PyTypeObject(ctypes.Structure):
'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']

Expand Down Expand Up @@ -188,6 +186,8 @@ def setup(app):
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

Expand Down

0 comments on commit 89da723

Please sign in to comment.