Repository: spark Updated Branches: refs/heads/branch-2.4 3591bd229 -> 362103b95
[SPARK-25754][DOC] Change CDN for MathJax ## What changes were proposed in this pull request? Currently when we open our doc site: https://spark.apache.org/docs/latest/index.html , there is one warning  This PR is to change the CDN as per the migration tips: https://www.mathjax.org/cdn-shutting-down/ This is very very trivial. But it would be good to follow the suggestion from MathJax team and remove the warning, in case one day the original CDN is no longer available. ## How was this patch tested? Manual check. Closes #22753 from gengliangwang/migrateMathJax. Authored-by: Gengliang Wang <[email protected]> Signed-off-by: Sean Owen <[email protected]> (cherry picked from commit 2ab4473bed44828cee5a47759b5c36fc81dd5d71) Signed-off-by: Sean Owen <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/362103b9 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/362103b9 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/362103b9 Branch: refs/heads/branch-2.4 Commit: 362103b951f9b7bdb816e2543edc410c9d66df86 Parents: 3591bd2 Author: Gengliang Wang <[email protected]> Authored: Wed Oct 17 06:52:00 2018 -0500 Committer: Sean Owen <[email protected]> Committed: Wed Oct 17 06:52:17 2018 -0500 ---------------------------------------------------------------------- docs/_layouts/global.html | 3 ++- docs/js/api-docs.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/362103b9/docs/_layouts/global.html ---------------------------------------------------------------------- diff --git a/docs/_layouts/global.html b/docs/_layouts/global.html index 88d549c..77edebe 100755 --- a/docs/_layouts/global.html +++ b/docs/_layouts/global.html @@ -184,7 +184,8 @@ }); }; script.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + - 'cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'; + 'cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js' + + '?config=TeX-AMS-MML_HTMLorMML'; d.getElementsByTagName('head')[0].appendChild(script); }(document)); </script> http://git-wip-us.apache.org/repos/asf/spark/blob/362103b9/docs/js/api-docs.js ---------------------------------------------------------------------- diff --git a/docs/js/api-docs.js b/docs/js/api-docs.js index 13514e1..287fce6 100644 --- a/docs/js/api-docs.js +++ b/docs/js/api-docs.js @@ -58,6 +58,7 @@ $(document).ready(function() { }); }; script.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + - 'cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'; + 'cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js' + + '?config=TeX-AMS-MML_HTMLorMML'; document.getElementsByTagName('head')[0].appendChild(script); }); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
