OSDN Git Service

fix: use loli.net and jsdelivr for cdn
authorIr1d <sirius.caffrey@gmail.com>
Mon, 1 Oct 2018 02:26:22 +0000 (10:26 +0800)
committerIr1d <sirius.caffrey@gmail.com>
Mon, 1 Oct 2018 02:26:22 +0000 (10:26 +0800)
build.sh
docs/_static/css/han.css
mkdocs.yml
netlify_build.sh
static/footer.html

index d4cd898..fb86c31 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -12,10 +12,10 @@ set -e
 # Clone Theme for Editing
 if [ ! -d "mkdocs-material" ] ; then
   git clone --depth 1 https://github.com/squidfunk/mkdocs-material.git
-  sed -i '9a\<meta http-equiv="x-dns-prefetch-control" content="on">\n\<link rel="dns-prefetch" href="//fonts.loli.net">\n\<link rel="dns-prefetch" href="//unpkg.com">\n\<link rel="dns-prefetch" href="//oi-wiki.org">\n\<link rel="dns-prefetch" href="//api.github.com">' mkdocs-material/material/base.html
+  sed -i '9a\<meta http-equiv="x-dns-prefetch-control" content="on">\n\<link rel="dns-prefetch" href="//fonts.loli.net">\n\<link rel="dns-prefetch" href="//cdnjs.loli.net">\n\<link rel="dns-prefetch" href="//oi-wiki.org">\n\<link rel="dns-prefetch" href="//cdn.jsdelivr.net">\n\<link rel="dns-prefetch" href="//api.github.com">' mkdocs-material/material/base.html
 fi
 sed -i "s/name: 'material'/name: null\n  custom_dir: 'mkdocs-material\/material'\n  static_templates:\n    - 404.html/g" mkdocs.yml
-sed -i "s/- 'https:\/\/cdn.staticfile.org\/mathjax\/2.7.5\/MathJax.js?config=TeX-MML-AM_CHTML'//g" mkdocs.yml
+sed -i "s/- 'https:\/\/cdnjs.loli.net\/ajax\/libs\/mathjax\/2.7.5\/MathJax.js?config=TeX-MML-AM_CHTML'//g" mkdocs.yml
 
 # Change Google CDN to loli.net
 sed -i 's/fonts.gstatic.com/gstatic.loli.net/g' mkdocs-material/material/base.html
index 4ac0446..adb30b9 100644 (file)
@@ -813,97 +813,97 @@ h-word {
 }
 @font-face {
   font-family: "Biaodian Serif";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Yakumono Sans";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Arial Unicode MS"), local("MS Gothic");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Arial Unicode MS"), local("MS Gothic");
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Yakumono Serif";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho"), local("Microsoft Yahei");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho"), local("Microsoft Yahei");
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Biaodian Pro Sans";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Biaodian Pro Serif";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Biaodian Pro Sans CNS";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Biaodian Pro Serif CNS";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Biaodian Pro Sans GB";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Biaodian Pro Serif GB";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
   unicode-range: U+2014;
 }
 @font-face {
   font-family: "Biaodian Sans";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(Meiryo), local("MS Gothic"), local(SimSun), local(PMingLiU);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(Meiryo), local("MS Gothic"), local(SimSun), local(PMingLiU);
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Biaodian Serif";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local("MS Mincho"), local(SimSun), local(PMingLiU);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local("MS Mincho"), local(SimSun), local(PMingLiU);
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Yakumono Sans";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(Meiryo), local("MS Gothic");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(Meiryo), local("MS Gothic");
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Yakumono Serif";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho");
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Biaodian Pro Sans";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Biaodian Pro Serif";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(SimSun), local(PMingLiU);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(SimSun), local(PMingLiU);
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Biaodian Pro Sans CNS";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Biaodian Pro Serif CNS";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSongti), local(SimSun), local(PMingLiU);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSongti), local(SimSun), local(PMingLiU);
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Biaodian Pro Sans GB";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
   unicode-range: U+2026;
 }
 @font-face {
   font-family: "Biaodian Pro Serif GB";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSongti), local(SimSun), local(PMingLiU);
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSongti), local(SimSun), local(PMingLiU);
   unicode-range: U+2026;
 }
 @font-face {
@@ -1050,61 +1050,61 @@ h-word {
 }
 @font-face {
   font-family: "Biaodian Basic";
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Basic";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Sans";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Pro Sans";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Pro Sans";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Pro Sans CNS";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Pro Sans GB";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Pro Serif";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Pro Serif CNS";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
   font-family: "Biaodian Pro Serif GB";
   font-weight: bold;
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+2014, U+2026, U+00B7;
 }
 @font-face {
@@ -1220,27 +1220,27 @@ h-word {
   unicode-range: U+270C;
 }
 @font-face {
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+3105-312D, U+31A0-31BA, U+02D9, U+02CA, U+02C5, U+02C7, U+02CB, U+02EA-02EB, U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
   font-family: "Zhuyin Kaiti";
 }
 @font-face {
   unicode-range: U+3105-312D, U+31A0-31BA, U+02D9, U+02CA, U+02C5, U+02C7, U+02CB, U+02EA-02EB, U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
   font-family: "Zhuyin Heiti";
-  src: local("Hiragino Sans GB"), local("Heiti TC"), local("Microsoft Jhenghei"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: local("Hiragino Sans GB"), local("Heiti TC"), local("Microsoft Jhenghei"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
 }
 @font-face {
   font-family: "Zhuyin Heiti";
-  src: local("Heiti TC"), local("Microsoft Jhenghei"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: local("Heiti TC"), local("Microsoft Jhenghei"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   unicode-range: U+3127;
 }
 @font-face {
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   font-family: "Zhuyin Heiti";
   unicode-range: U+02D9, U+02CA, U+02C5, U+02C7, U+02CB, U+02EA-02EB, U+31B4, U+31B5, U+31B6, U+31B7, U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
 }
 @font-face {
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han.otf?v3.3.0") format("opentype");
   font-family: "Romanization Sans";
   unicode-range: U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
 }
@@ -1591,7 +1591,7 @@ h-hws[hidden].quote-outer:lang(zh-CN) {
   display: none;
 }
 @font-face {
-  src: url("https://cdn.staticfile.org/Han/3.3.0/font/han-space.woff?v3.3.0") format("woff"), url("https://cdn.staticfile.org/Han/3.3.0/font/han-space.woff?v3.3.0") format("opentype");
+  src: url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han-space.woff?v3.3.0") format("woff"), url("https://cdnjs.loli.net/ajax/libs/Han/3.3.0/font/han-space.woff?v3.3.0") format("opentype");
   font-family: "Han Space";
   unicode-range: U+20;
 }
index 85871f7..025c2a3 100644 (file)
@@ -251,13 +251,13 @@ extra:
   pagetime: 'on'
 
 extra_javascript:
-  - 'https://cdn.staticfile.org/Han/3.3.0/han.min.js'
+  - 'https://cdnjs.loli.net/ajax/libs/Han/3.3.0/han.min.js'
   - '_static/js/extra.js?v=10'
-  - 'https://cdn.staticfile.org/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML'
+  - 'https://cdnjs.loli.net/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML'
   
 
 extra_css:
-  - 'https://unpkg.com/ah@1.0.5/han.min.css'
+  - 'https://cdn.jsdelivr.net/npm/ah@1.1.0/han.min.css'
   - '_static/css/extra.css?v=7'
 
 # Extensions
index c34c309..0e69b51 100755 (executable)
@@ -12,10 +12,10 @@ set -e
 # Clone Theme for Editing
 if [ ! -d "mkdocs-material" ] ; then
   git clone --depth 1 https://github.com/squidfunk/mkdocs-material.git
-  sed -i '9a\<meta http-equiv="x-dns-prefetch-control" content="on">\n\<link rel="dns-prefetch" href="//fonts.loli.net">\n\<link rel="dns-prefetch" href="//unpkg.com">\n\<link rel="dns-prefetch" href="//oi-wiki.org">\n\<link rel="dns-prefetch" href="//api.github.com">' mkdocs-material/material/base.html
+  sed -i '9a\<meta http-equiv="x-dns-prefetch-control" content="on">\n\<link rel="dns-prefetch" href="//fonts.loli.net">\n\<link rel="dns-prefetch" href="//cdnjs.loli.net">\n\<link rel="dns-prefetch" href="//oi-wiki.org">\n\<link rel="dns-prefetch" href="//cdn.jsdelivr.net">\n\<link rel="dns-prefetch" href="//api.github.com">' mkdocs-material/material/base.html
 fi
 sed -i "s/name: 'material'/name: null\n  custom_dir: 'mkdocs-material\/material'\n  static_templates:\n    - 404.html/g" mkdocs.yml
-sed -i "s/- 'https:\/\/cdn.staticfile.org\/mathjax\/2.7.5\/MathJax.js?config=TeX-MML-AM_CHTML'//g" mkdocs.yml
+sed -i "s/- 'https:\/\/cdnjs.loli.net\/ajax\/libs\/mathjax\/2.7.5\/MathJax.js?config=TeX-MML-AM_CHTML'//g" mkdocs.yml
 
 # Change Google CDN to loli.net
 sed -i 's/fonts.gstatic.com/gstatic.loli.net/g' mkdocs-material/material/base.html
@@ -30,4 +30,4 @@ cp ./static/extra.js docs/_static/js/extra.js
 
 mkdocs build -v
 
-node render_math.js
+node --max_old_space_size=1024 netlify_math.js
index 232ad16..e410f3e 100644 (file)
@@ -1,7 +1,7 @@
 {% import "partials/language.html" as lang with context %}
 
 <!-- InstantClick -->
-<script type="text/javascript" src="https://cdn.staticfile.org/instantclick/3.0.1/instantclick.min.js" data-no-instant></script>
+<script type="text/javascript" src="https://cdnjs.loli.net/ajax/libs/instantclick/3.0.1/instantclick.min.js" data-no-instant></script>
 <script data-no-instant>
 InstantClick.init(true);
 </script>
@@ -9,7 +9,7 @@ InstantClick.init(true);
 <script src="{{ 'assets/javascripts/modernizr.1aa3b519.js' | url }}" data-no-instant></script>
 
 <!-- back to top -->
-<link rel="stylesheet" href="https://unpkg.com/data-tip@0.0.52/dist/data-tip.css">
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/data-tip@0.0.52/dist/data-tip.css">
 <script>
 // 当网页向下滑动 20px 出现"返回顶部" 按钮
 window.onscroll = function() {scrollFunction()};