-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
62 lines (54 loc) · 2.38 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
<!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, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
coverpage: true, // 设置封面
onlyCover: true, // 只显示封面
loadSidebar: true, // 设置侧边栏
subMaxLevel: 3, //侧边栏显示当前页面的目录(标题)
loadNavbar: true, // 设置导航栏
// 完整配置参数
search: {
placeholder: '搜索', // 搜索提示框文字, 支持本地化,例子在下面
noData: '找不到结果!',
depth: 3, // 搜索标题的最大程级, 1 - 6
}
}
</script>
<script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.11.2/docsify.js"></script>
<!-- 引入搜索模块 -->
<script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.11.2/plugins/search.min.js"></script>
<!-- 添加一键拷贝代码-->
<script src="//unpkg.com/docsify-copy-code"></script></script>
<!-- 添加代码高亮 -->
<script src="//unpkg.com/prismjs/components/prism-bash.js"></script>
<script src="//unpkg.com/prismjs/components/prism-java.js"></script>
<script src="//unpkg.com/prismjs/components/prism-sql.js"></script>
<script src="//unpkg.com/prismjs/components/prism-java.js"></script>
<script src="//unpkg.com/prismjs/components/prism-sql.js"></script>
<!-- 引入 gitalk留言功能 -->
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/gitalk/1.6.2/gitalk.css">
<script src="https://cdn.bootcdn.net/ajax/libs/gitalk/1.6.2/gitalk.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/docsify/4.11.2/plugins/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: 'b018a34d2298d3271d7c',
clientSecret: '64703e2d3c855b68bfdd74438a91cb4eef209fd3',
repo: 'moxi624.github.io', // 存放评论的仓库
owner: 'moxi624', // 仓库的创建者
admin: ['moxi624'], // 如果仓库有多个人可以操作,那么在这里以数组形式写出
id: location.pathname, // 用于标记评论是哪个页面的
})
</script>
</body>
</html>