diff --git a/CHANGES b/CHANGES index 648dcc302..5a39388ec 100644 --- a/CHANGES +++ b/CHANGES @@ -148,7 +148,7 @@ Bugs fixed * #1466,PR#241: Fix failure of the cpp domain parser to parse C+11 "variadic templates" declarations. Thanks to Victor Zverovich. * #1459,PR#244: Fix default mathjax js path point to `http://` that cause - mixed-content error on HTTPS server. Thanks to sbrandtb. + mixed-content error on HTTPS server. Thanks to sbrandtb and robo9k. Documentation ------------- diff --git a/sphinx/ext/mathjax.py b/sphinx/ext/mathjax.py index f7914b2fb..472ec55fd 100644 --- a/sphinx/ext/mathjax.py +++ b/sphinx/ext/mathjax.py @@ -60,8 +60,10 @@ def builder_inited(app): def setup(app): mathbase_setup(app, (html_visit_math, None), (html_visit_displaymath, None)) + # more information for mathjax secure url is here: + # http://docs.mathjax.org/en/latest/start.html#secure-access-to-the-cdn app.add_config_value('mathjax_path', - 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?' + 'https://c328740.ssl.cf1.rackcdn.com/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')