diff options
author | Georg Brandl <georg@python.org> | 2011-05-15 11:57:23 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-05-15 11:57:23 +0200 |
commit | 99c505b63fa9f8f0b555a3b45a7b24d9e9dcc86c (patch) | |
tree | 4f740f30da35d5bd18418a75c83c66a5af2a151f /sphinx/ext/mathjax.py | |
parent | 8a08f5b42a728433d0e44e40876f212675c6c8ff (diff) | |
download | sphinx-git-99c505b63fa9f8f0b555a3b45a7b24d9e9dcc86c.tar.gz |
Closes #683: set default MathJax path to the CDN URL, and update the docs accordingly.
Diffstat (limited to 'sphinx/ext/mathjax.py')
-rw-r--r-- | sphinx/ext/mathjax.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/ext/mathjax.py b/sphinx/ext/mathjax.py index e8d2d4851..7a5523643 100644 --- a/sphinx/ext/mathjax.py +++ b/sphinx/ext/mathjax.py @@ -60,8 +60,9 @@ def builder_inited(app): def setup(app): mathbase_setup(app, (html_visit_math, None), (html_visit_displaymath, None)) - app.add_config_value('mathjax_path', '', False) + app.add_config_value('mathjax_path', + 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?' + 'config=TeX-AMS-MML_HTMLorMML', False) app.add_config_value('mathjax_inline', [r'\(', r'\)'], 'html') app.add_config_value('mathjax_display', [r'\[', r'\]'], 'html') app.connect('builder-inited', builder_inited) - |