* fix again for mathjax secure url. refs #1459.

This commit is contained in:
Takayuki Shimizukawa 2014-06-11 23:03:00 +09:00
parent 08dac9c3b7
commit fb2c15eaa7
2 changed files with 4 additions and 2 deletions

View File

@ -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
-------------

View File

@ -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')