-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
110 lines (96 loc) · 3.7 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
<!DOCTYPE html>
<html lang="zh-cn">
<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="shortcut itemStackView" href="itemStackView.png">
</head>
<body>
<div id="app"></div>
<!-- 评论 -->
<link rel="stylesheet" href="//unpkg.com/gitalk/dist/gitalk.css">
<script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'ebf41f38753959b5af61',
clientSecret: '1f2c4f3b2b36ca2a5c0bfa41eeb4b291709da861',
repo: 'XiaoMingBot',
owner: 'Chuanwise',
admin: ['Chuanwise'],
distractionFreeMode: true
})
// 监听URL中hash的变化,如果发现换了一个MD文件,那么刷新页面,解决整个网站使用一个gitalk评论issues的问题。
window.onhashchange = function (event) {
if (event.newURL.split('?')[0] !== event.oldURL.split('?')[0]) {
location.reload()
}
}
</script>
<script>
window.$docsify = {
name: '',
repo: 'https://github.com/XiaoMingProject/XiaoMingBot',
loadNavbar: true,
mergeNavbar: true,
notFoundPage: '404.md',
// themeColor: '#00CED1',
topMargin: 10,
pagination: {
previousText: '上一章节',
nextText: '下一章节',
crossChapter: true,
crossChapterText: true,
},
// 全文搜索
search: {
// (毫秒)过期时间一天
maxAge: 86400000,
paths: 'auto',
placeholder: '点击这里搜索 (๑•̀ㅂ•́)و✧',
noData: '咱们换个关键词再试试吧 (;′⌒`)',
depth: '6'
},
copyCode: {
// buttonText : 'buttonText:String',
// errorText : 'errorText:String',
// successText: 'successText:String'
buttonText: {
'/': '复制'
},
errorText: {
'/': '错误'
},
successText: {
'/': '复制成功'
}
}
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script>
<!-- <script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script> -->
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
<!-- 搜索 -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
<!-- or <script src="//cdn.jsdelivr.net/gh/upupming/docsify-katex/dist/docsify-katex.js"></script> -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css" />
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<!-- 代码格式化 -->
<script src="//unpkg.com/prismjs/components/prism-java.js"></script>
<script src="//unpkg.com/prismjs/components/prism-json.js"></script>
<script src="//unpkg.com/prismjs/components/prism-xml.js"></script>
<!-- 字数统计 -->
<!-- <script src="//unpkg.com/docsify-count/dist/countable.js"></script> -->
<!-- 图片缩放查看 -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<!-- 表情查看 -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
</body>
</html>