-
Notifications
You must be signed in to change notification settings - Fork 144
/
Copy pathindex.html
310 lines (286 loc) · 10.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<title>Arch Linux 安装使用教程 - ArchTutorial - Arch Linux Studio</title>
<meta
name="description"
content="每日实时更新!包含从 archlinux 安装,科学上网,翻墙,到显卡驱动、日常软件配置、媒体制作、编程、加密货币入门等众多内容.本教程为推动自由软件运动而编写."
/>
<!-- GSC -->
<meta
name="google-site-verification"
content="I9AUrsDVI86dZZUEJ2wSX4torsBJsq0bihBPHd_Efx4"
/>
<meta name="author" content="Arch Linux Studio" />
<meta
name="keywords"
content="Arch Linux安装,ArchLinux教程,显卡驱动,v2ray,shadowsocks,翻墙,科学上网,Linux"
/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<!-- Facebook Meta Tags -->
<meta
property="og:url"
content="https://archlinuxstudio.github.io/ArchLinuxTutorial/#/"
/>
<meta property="og:type" content="website" />
<meta
property="og:title"
content="Arch Linux 安装使用教程 - ArchTutorial - Arch Linux Studio"
/>
<meta
property="og:description"
content="Arch Linux 安装使用教程 包含从 安装/魔法上网/美化/日常/娱乐/编程的全部"
/>
<meta
property="og:image"
content="https://avatars.githubusercontent.com/u/17615884?s=400&v=4"
/>
<meta property="og:site_name" content="ArchLinuxStudio" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary" />
<meta property="twitter:domain" content="archlinuxstudio.github.io" />
<meta
property="twitter:url"
content="https://archlinuxstudio.github.io/ArchLinuxTutorial/#/"
/>
<meta
name="twitter:title"
content="Arch Linux 安装使用教程 - ArchTutorial - Arch Linux Studio"
/>
<meta
name="twitter:description"
content="Arch Linux 安装使��教程 包含从 安装/魔法上网/美化/日常/娱乐/编程的全部"
/>
<meta
name="twitter:image"
content="https://avatars.githubusercontent.com/u/17615884?s=400&v=4"
/>
<link rel="icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
<link
rel="shortcut icon"
type="image/vnd.microsoft.icon"
href="favicon.ico"
/>
<link rel="stylesheet" href="./resources/vue.css" />
<!-- <link rel="stylesheet" href="./fonts.googleapis.css" /> -->
<!-- <link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css"
/> -->
<!-- <link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css"
/> -->
<link rel="stylesheet" href="./resources/gitalk.css" />
<style>
.sidebar {
padding: 0 0 0 0;
}
.app-name {
padding-top: 10px;
border-bottom: 4px solid rgb(0, 136, 204);
background-color: rgb(51, 51, 51);
}
.app-name-link img {
width: 70%;
}
.seo-pic {
display: none;
}
</style>
</head>
<body>
<img
src="./arch.svg"
alt="Arch Linux 安装使用教程 - ArchTutorial - Arch Linux Studio"
class="seo-pic"
/>
<div id="app">
Arch Linux 安装使用教程 包含从
安装/魔法上网/美化/日常/娱乐/编程的全部...<br />
如您无法访问本站,则说明您的网络环境已被当局封锁,请翻墙访问
</div>
<script>
window.$docsify = {
loadNavbar: true,
search: {
placeholder: "搜索...",
},
name: "Arch Linux 安装使用教程 - ArchTutorial - Arch Linux Studio",
loadSidebar: true,
auto2top: true,
logo: "./arch.svg",
topMargin: 90,
notFoundPage: true,
subMaxLevel: 4,
themeColor: "rgb(23,147,209)",
repo: "https://github.com/ArchLinuxStudio/ArchLinuxTutorial",
formatUpdated: "{YYYY}-{MM}-{DD}",
pagination: {
previousText: "Previous",
nextText: "Next",
crossChapter: true,
crossChapterText: true,
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
let edit_url =
"https://github.com/ArchLinuxStudio/ArchLinuxTutorial/blob/master/docs/" +
vm.route.file;
let editHtml = "[📝 Edit This Page](" + edit_url + ")\n";
let client_id = "296c581fc4b2a837a1e3";
let client_secret = "7e7f0ad1809fa4a1915430ade04835f6849ab56a";
let date_url =
"https://api.github.com/repos/ArchLinuxStudio/ArchLinuxTutorial/commits?per_page=1&path=docs/" +
vm.config.basePath +
encodeURIComponent(vm.route.file);
fetch(date_url, {
headers: {
Authorization: `${client_id}:${client_secret}`,
},
})
.then((response) => {
return response.json();
})
.then((commits) => {
let modified = commits[0]["commit"]["committer"][
"date"
].slice(0, 10);
document.getElementById("last-modified").textContent =
"Update date: " + modified;
});
return (
'<span id="last-modified">Update date: Fetching...</span>' +
"\n" +
html +
"\n----\n" +
editHtml
);
});
hook.mounted(function () {
// 添加网站运行时间
let dom = Docsify.dom;
let runTimeNode = dom.create("div");
runTimeNode.className = "runtime";
runTimeNode.style =
"color: #8590a6;max-width: 80%;margin: 0 auto 20px;padding: 0 15px 0 15px;";
dom.appendTo(dom.find(".content"), runTimeNode);
});
},
],
};
</script>
<!-- <script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script> -->
<script src="./resources/docsify.min.js"></script>
<!-- <script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script> -->
<script src="./resources/prism-bash.min.js"></script>
<!-- <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script> -->
<script src="./resources/plugins/gitalk.min.js"></script>
<!-- <script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script> -->
<script src="./resources/gitalk.min.js"></script>
<!-- <script src="//cdn.jsdelivr.net/npm/docsify-pagination@2/dist/docsify-pagination.min.js"></script> -->
<script src="./resources/docsify-pagination.min.js"></script>
<!-- <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script> -->
<script src="./resources/plugins/search.min.js"></script>
<!-- <script src="https://unpkg.com/vanilla-back-to-top@7.2.1/dist/vanilla-back-to-top.min.js"></script> -->
<script src="./resources/vanilla-back-to-top.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/darkreader@4.9.77/darkreader.min.js"></script>
<script>
DarkReader.auto({
brightness: 100,
contrast: 98,
sepia: 10,
});
</script>
<script>
addBackToTop({
diameter: 56,
backgroundColor: "rgb(23,147,209)",
textColor: "#fff",
});
</script>
<script>
let client_id = "296c581fc4b2a837a1e3";
let client_secret = "7e7f0ad1809fa4a1915430ade04835f6849ab56a";
let props = {
clientID: client_id,
clientSecret: client_secret,
repo: "ArchLinuxTutorialComments",
owner: "ArchLinuxStudio",
admin: ["ryosukeeeeee"],
// facebook-like distraction free mode
distractionFreeMode: false,
id: decodeURI(location.hash.split("?")[0]),
language: "en",
};
let gitalk = new Gitalk(props);
// 哈希路由切换时 重新加载Gitalk
window.addEventListener("hashchange", onHashChange);
function onHashChange() {
props.id = decodeURI(location.hash.split("?")[0]); //如果不切分,在docsify里面的各个段落都会生成新的评论issue
}
</script>
<script>
function change_search_plugin_order() {
let search_plugin = document.getElementsByClassName("search")[0];
let app_name = document.getElementsByClassName("app-name")[0];
search_plugin.parentNode.insertBefore(app_name, search_plugin);
}
setTimeout(change_search_plugin_order, 1);
</script>
<!-- 添加网站运行时间统计 -->
<script>
function siteTime() {
setTimeout(siteTime, 1000);
let seconds = 1000;
let minutes = seconds * 60;
let hours = minutes * 60;
let days = hours * 24;
let today = new Date();
let todayYear = today.getFullYear();
let todayMonth = today.getMonth() + 1;
let todayDate = today.getDate();
let todayHour = today.getHours();
let todayMinute = today.getMinutes();
let todaySecond = today.getSeconds();
let t1 = Date.UTC(2020, 9, 1, 0, 0, 0);
let t2 = Date.UTC(
todayYear,
todayMonth,
todayDate,
todayHour,
todayMinute,
todaySecond
);
let diff = t2 - t1;
let diffDays = Math.floor(diff / days);
let diffHours = Math.floor((diff - diffDays * days) / hours);
let diffMinutes = Math.floor(
(diff - diffDays * days - diffHours * hours) / minutes
);
let diffSeconds = Math.floor(
(diff - diffDays * days - diffHours * hours - diffMinutes * minutes) /
seconds
);
Docsify.dom.find(".runtime").innerHTML =
"Arch Linux Studio has been running for " +
diffDays +
" days " +
diffHours +
" hours " +
diffMinutes +
" minutes " +
diffSeconds +
" seconds";
}
// 先让网页加载完,否则 Docsify.dom.find('.runtime') == null
setTimeout(siteTime, 500);
</script>
</body>
</html>