Repository: spark
Updated Branches:
  refs/heads/master 9690eba16 -> 2ab4473be


[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
![image](https://user-images.githubusercontent.com/1097932/47065926-2b757980-d217-11e8-868f-02ce73f513ae.png)

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


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/2ab4473b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/2ab4473b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/2ab4473b

Branch: refs/heads/master
Commit: 2ab4473bed44828cee5a47759b5c36fc81dd5d71
Parents: 9690eba
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:00 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/2ab4473b/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/2ab4473b/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]

Reply via email to