mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
* fix again for mathjax secure url. refs #1459.
This commit is contained in:
parent
08dac9c3b7
commit
fb2c15eaa7
2
CHANGES
2
CHANGES
@ -148,7 +148,7 @@ Bugs fixed
|
|||||||
* #1466,PR#241: Fix failure of the cpp domain parser to parse C+11
|
* #1466,PR#241: Fix failure of the cpp domain parser to parse C+11
|
||||||
"variadic templates" declarations. Thanks to Victor Zverovich.
|
"variadic templates" declarations. Thanks to Victor Zverovich.
|
||||||
* #1459,PR#244: Fix default mathjax js path point to `http://` that cause
|
* #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
|
Documentation
|
||||||
-------------
|
-------------
|
||||||
|
@ -60,8 +60,10 @@ def builder_inited(app):
|
|||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
mathbase_setup(app, (html_visit_math, None), (html_visit_displaymath, None))
|
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',
|
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)
|
'config=TeX-AMS-MML_HTMLorMML', False)
|
||||||
app.add_config_value('mathjax_inline', [r'\(', r'\)'], 'html')
|
app.add_config_value('mathjax_inline', [r'\(', r'\)'], 'html')
|
||||||
app.add_config_value('mathjax_display', [r'\[', r'\]'], 'html')
|
app.add_config_value('mathjax_display', [r'\[', r'\]'], 'html')
|
||||||
|
Loading…
Reference in New Issue
Block a user