-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (69 loc) · 2.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>我的朋友</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
<link rel="icon" href="_assert/favicon.ico">
</head>
<body>
<div id="app">Please wait...</div>
<script>
window.$docsify = {
name: 'MyBlog',
logo: '/_assert/logo.svg',
repo: 'https://github.com/dw12278/MyBlog',
loadSidebar: true,
subMaxLevel: 2,
// 搜索功能相关
search: {
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
paths: 'auto',
placeholder: 'Type to search',
noData: 'No Results!',
// 搜索标题的最大程级, 1 - 6
depth: 6
},
// 代码块点击复制
copyCode: {
buttonText: 'Copy',
errorText: 'Error',
successText: 'Copied'
}
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-java.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: '31a9001e8f3fc338e633',
clientSecret: '11e21aa99a534bf5ebcfa1b1e1c1694c6891e097',
//clientID: '1c9fa4b793cc14648779',
//clientSecret: '2ef653fc35740740a6bacd3b004718802b322fe3',
repo: 'MyBlog',
owner: 'dw12278',
admin: ['dw12278'],
// facebook-like distraction free mode
distractionFreeMode: false
})
</script>
<script>
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('sw.js')
}
</script>
</body>
</html>