-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
109 lines (99 loc) · 3.78 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
<!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="keywords" content="羊先生,vipbic官网,全栈导航,Egg.js教程,docsify技巧">
<meta name="description" content="我是一个个子不高,长得不帅,家里没钱,单位没权,城里没房,曾经在还有着梦想的废柴青年,他们都叫我行长或者羊先生,在杭工作的湖北人">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="icon" href="/docs/favicon.png">
<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">
<!-- date.js 依赖 -->
<script src="https://unpkg.com/[email protected]/dayjs.min.js"></script>
<script src="https://unpkg.com/[email protected]/locale/zh-cn.js"></script>
<script>dayjs.locale('zh-cn')</script>
<!-- 结束 -->
<style>
.cover-main img[alt="logo"] {
border-radius: 50%;
width: 200px;
height: 200px;
transition: all 0.35s;
}
.cover-main img[alt="logo"]:hover {
transform: rotate(360deg);
}
</style>
</head>
<body>
<div id="app">嘿,小可爱,正在加载中...</div>
<script>
// 搜索配置
const search = {
search: {
placeholder: '输入关键词搜索',
},
}
// 基础配置
const basics = {
name: '羊先生',
repo: 'https://hangjob.github.io/docs/#/',
externalLinkTarget: '_blank',
onlyCover: true, // 首页是否只显示背景
coverpage: true,
loadSidebar: true,
autoHeader: true,
loadNavbar: true, // 加载顶部菜单
routerMode: 'hash', // default: 'hash' history => nginx try_files $uri $uri/ /index.html;
formatUpdated: function (time) {
return dayjs(time).format('YYYY-MMMM-DD HH:mm:ss dddd');
},
// 复制
copyCode: {
buttonText: '复制',
errorText: '出错啦',
successText: '成功'
},
// 字数
count: {
countable: true,
fontsize: '0.9em',
color: 'rgb(90,90,90)',
language: 'chinese'
},
}
window.$docsify = {
...basics,
...search,
};
// 运行命令
// docsify serve docs -p 8901
</script>
<!-- docsify -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<!--<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/docsify.min.js"></script>-->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="https://unpkg.com/docsify-copy-code@2"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//unpkg.com/docsify-count/dist/countable.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>-->
<!-- // 评论插件-->
<!-- const gitalk = new Gitalk({-->
<!-- clientID: '92ab8a5b08b100114a00', // 申请下来的ID-->
<!-- clientSecret: '2bab4805e4fb00609a8efe96583b4e6412cc67af', // 申请下来的密码-->
<!-- repo: 'docs', // 仓库名字-->
<!-- owner: 'hangjob', // 你的Github名字-->
<!-- admin: ['hangjob'], // 你的Github名字和其他管理员的名字-->
<!-- // facebook-like distraction free mode-->
<!-- distractionFreeMode: true-->
<!-- })-->
<!--</script>-->
</body>
</html>