Skip to content

Commit 8ab852e

Browse files
committed
remove google fonts
1 parent a81cc43 commit 8ab852e

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

docs/index.html

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<link rel="icon" href="./c.svg" />
4848
<title>Linux 网络编程与加密</title>
4949
<link rel="stylesheet" href="./vue.css" />
50-
<link rel="stylesheet" href="./fonts.googleapis.css" />
50+
<!-- <link rel="stylesheet" href="./fonts.googleapis.css" /> -->
5151
<!-- <link
5252
rel="stylesheet"
5353
href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css"
@@ -78,38 +78,38 @@
7878
<div id="app">加载中...</div>
7979
<script>
8080
window.$docsify = {
81-
name: 'Linux 网络编程与加密',
81+
name: "Linux 网络编程与加密",
8282
search: {
83-
placeholder: '搜索...',
83+
placeholder: "搜索...",
8484
},
8585
loadSidebar: true,
8686
auto2top: true,
87-
logo: './c.png',
87+
logo: "./c.png",
8888
topMargin: 90,
8989
notFoundPage: true,
9090
subMaxLevel: 4,
91-
themeColor: 'rgb(85, 85, 85)',
92-
repo: 'https://github.com/ArchLinuxStudio/LinuxNetworkProgrammingAndEncryption',
93-
formatUpdated: '{YYYY}-{MM}-{DD}',
91+
themeColor: "rgb(85, 85, 85)",
92+
repo: "https://github.com/ArchLinuxStudio/LinuxNetworkProgrammingAndEncryption",
93+
formatUpdated: "{YYYY}-{MM}-{DD}",
9494
pagination: {
95-
previousText: '上一节',
96-
nextText: '下一节',
95+
previousText: "上一节",
96+
nextText: "下一节",
9797
crossChapter: true,
9898
crossChapterText: true,
9999
},
100100
plugins: [
101101
function (hook, vm) {
102102
hook.beforeEach(function (html) {
103103
let edit_url =
104-
'https://github.com/ArchLinuxStudio/LinuxNetworkProgrammingAndEncryption/blob/master/docs/' +
104+
"https://github.com/ArchLinuxStudio/LinuxNetworkProgrammingAndEncryption/blob/master/docs/" +
105105
vm.route.file;
106-
let editHtml = '[📝 编辑本文](' + edit_url + ')\n';
106+
let editHtml = "[📝 编辑本文](" + edit_url + ")\n";
107107

108-
let client_id = 'e1f0ea79ea66351131ae';
109-
let client_secret = '7b8509854c085a1100c8cd0b2ae958264be658fc';
108+
let client_id = "e1f0ea79ea66351131ae";
109+
let client_secret = "7b8509854c085a1100c8cd0b2ae958264be658fc";
110110

111111
let date_url =
112-
'https://api.github.com/repos/ArchLinuxStudio/LinuxNetworkProgrammingAndEncryption/commits?per_page=1&path=docs/' +
112+
"https://api.github.com/repos/ArchLinuxStudio/LinuxNetworkProgrammingAndEncryption/commits?per_page=1&path=docs/" +
113113
vm.config.basePath +
114114
encodeURIComponent(vm.route.file);
115115

@@ -122,30 +122,30 @@
122122
return response.json();
123123
})
124124
.then((commits) => {
125-
let modified = commits[0]['commit']['committer'][
126-
'date'
125+
let modified = commits[0]["commit"]["committer"][
126+
"date"
127127
].slice(0, 10);
128-
document.getElementById('last-modified').textContent =
129-
'更新日期: ' + modified;
128+
document.getElementById("last-modified").textContent =
129+
"更新日期: " + modified;
130130
});
131131

132132
return (
133133
'<span id="last-modified">更新日期: 获取中</span>' +
134-
'\n' +
134+
"\n" +
135135
html +
136-
'\n----\n' +
136+
"\n----\n" +
137137
editHtml
138138
);
139139
});
140140

141141
hook.mounted(function () {
142142
// 添加网站运行时间
143143
let dom = Docsify.dom;
144-
let runTimeNode = dom.create('div');
145-
runTimeNode.className = 'runtime';
144+
let runTimeNode = dom.create("div");
145+
runTimeNode.className = "runtime";
146146
runTimeNode.style =
147-
'color: #8590a6;max-width: 80%;margin: 0 auto 20px;padding: 0 15px 0 15px;';
148-
dom.appendTo(dom.find('.content'), runTimeNode);
147+
"color: #8590a6;max-width: 80%;margin: 0 auto 20px;padding: 0 15px 0 15px;";
148+
dom.appendTo(dom.find(".content"), runTimeNode);
149149
});
150150
},
151151
],
@@ -163,38 +163,38 @@
163163
<script>
164164
addBackToTop({
165165
diameter: 56,
166-
backgroundColor: 'rgb(129, 127, 127)',
167-
textColor: '#fff',
166+
backgroundColor: "rgb(129, 127, 127)",
167+
textColor: "#fff",
168168
});
169169
</script>
170170

171171
<script>
172-
let client_id = 'e1f0ea79ea66351131ae';
173-
let client_secret = '7b8509854c085a1100c8cd0b2ae958264be658fc';
172+
let client_id = "e1f0ea79ea66351131ae";
173+
let client_secret = "7b8509854c085a1100c8cd0b2ae958264be658fc";
174174

175175
let props = {
176176
clientID: client_id,
177177
clientSecret: client_secret,
178-
repo: 'CProgrammingEssenceComments',
179-
owner: 'ArchLinuxStudio',
180-
admin: ['ryosukeeeeee'],
178+
repo: "CProgrammingEssenceComments",
179+
owner: "ArchLinuxStudio",
180+
admin: ["ryosukeeeeee"],
181181
// facebook-like distraction free mode
182182
distractionFreeMode: false,
183-
id: decodeURI(location.hash.split('?')[0]),
183+
id: decodeURI(location.hash.split("?")[0]),
184184
proxy:
185-
'https://ifuckgfw.com:7788/https://github.com/login/oauth/access_token',
185+
"https://ifuckgfw.com:7788/https://github.com/login/oauth/access_token",
186186
};
187187
let gitalk = new Gitalk(props);
188188
// 哈希路由切换时 重新加载Gitalk
189-
window.addEventListener('hashchange', onHashChange);
189+
window.addEventListener("hashchange", onHashChange);
190190
function onHashChange() {
191-
props.id = decodeURI(location.hash.split('?')[0]); //如果不切分,在docsify里面的各个段落都会生成新的评论issue
191+
props.id = decodeURI(location.hash.split("?")[0]); //如果不切分,在docsify里面的各个段落都会生成新的评论issue
192192
}
193193
</script>
194194
<script>
195195
function change_search_plugin_order() {
196-
let search_plugin = document.getElementsByClassName('search')[0];
197-
let app_name = document.getElementsByClassName('app-name')[0];
196+
let search_plugin = document.getElementsByClassName("search")[0];
197+
let app_name = document.getElementsByClassName("app-name")[0];
198198
search_plugin.parentNode.insertBefore(app_name, search_plugin);
199199
}
200200
setTimeout(change_search_plugin_order, 1);
@@ -235,16 +235,16 @@
235235
(diff - diffDays * days - diffHours * hours - diffMinutes * minutes) /
236236
seconds
237237
);
238-
Docsify.dom.find('.runtime').innerHTML =
239-
'Linux Network Programming and Encryption已运行 ' +
238+
Docsify.dom.find(".runtime").innerHTML =
239+
"Linux Network Programming and Encryption已运行 " +
240240
diffDays +
241-
'' +
241+
"" +
242242
diffHours +
243-
' 小时 ' +
243+
" 小时 " +
244244
diffMinutes +
245-
'' +
245+
"" +
246246
diffSeconds +
247-
' 秒';
247+
" 秒";
248248
}
249249
// 先让网页加载完,否则 Docsify.dom.find('.runtime') == null
250250
setTimeout(siteTime, 500);

0 commit comments

Comments
 (0)