8000 MAINT: replace imgmath with mathjax for docs by charris · Pull Request #19238 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: replace imgmath with mathjax for docs #19238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
A118
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