Skip to content

Commit

Permalink
MAINT: bundle Mathjax for built documentation
Browse files Browse the repository at this point in the history
The Mathjax CDN was retired Apr 30 2017.

Instead of using 3rd party CDN, we bundle here a stripped-down version
of Mathjax. The stripping is done using the semi-official tool by the
Mathjax project, and the rebuild script is available.
  • Loading branch information
pv committed May 4, 2017
1 parent 59254f6 commit 752e31f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "doc/sphinxext"]
path = doc/sphinxext
url = https://github.com/numpy/numpydoc.git
[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
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

htmlhelp_basename = 'scipy'

mathjax_path = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
mathjax_path = "scipy-mathjax/MathJax.js?config=scipy-mathjax"


# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 752e31f

Please sign in to comment.