-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (111 loc) · 4.42 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
<!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="软件开发知识积累、分享平台,共同成长共同进步!">
<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/prismjs@1/plugins/line-numbers/prism-line-numbers.css">
<link rel="stylesheet" href="./_assets/css/index.css">
<link rel="icon" href="./_assets/favicon.ico" />
</head>
<body>
<div id="app">⏰ 加载中...</div>
<script>
window.$docsify = {
name: '知识积累',
repo: 'https://github.com/wangyonghao/wangyonghao.github.io.git',
logo: '',
themeColor: '#3d8fd1',
auto2top: true, //切换页面后是否自动跳转到页面顶部
loadNavbar: '_navbar.md',
mergeNavbar: true, // Navbar 将在较小的屏幕上与侧边栏合并
loadSidebar: '_sidebar.md',
homepage: 'README.md',
coverpage: '_cover.md', // 封面图
onlyCover: false, // 主页仅加载封面,不能滚动到其他页
notFoundPage: true,
maxLevel: 3, // 配置最大支持渲染的标题层级
subMaxLevel: 2, // 自定义侧边栏同时也可以开启目录功能
formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}',
search: {
placeholder: ' ♨ 搜索试试',
noData: '抱歉!找不到对应的结果'
},
pagination: {
previousText: '上一节',
nextText: '下一节',
crossChapter: true
},
count:{
countable: true,
position: 'top',
margin: '0px',
float: 'right',
fontsize:'0.9em',
color:'rgb(90,90,90)',
language:'chinese',
isExpected: false
},
copyCode: {
buttonText: {
'/': '复制',
'/es/': 'Copy to clipboard'
},
errorText: {
'/': '错误',
'/es/': 'Error'
},
successText: {
'/': '已复制',
'/es/': 'Copied'
}
},
plugins: [
// DocsifyCodefund.create('xxxx-xxx-xxx'), // change to your codefund id
function(hook, vm) {
hook.beforeEach(function(html) {
return html + '\n' + '<font style="color: rgb(90,90,90)"> ⏰更新于: {docsify-updated} </font>';
});
// hook.doneEach(function() {
// var label, domObj, main, divEle, gitalk;
// label = vm.route.path.split('/').pop();
// domObj = Docsify.dom;
// main = domObj.getNode('#main');
// Array.apply(null, document.querySelectorAll('div.gitalk-container')).forEach(function(ele) {
// ele.remove();
// });
// divEle = domObj.create('div');
// divEle.id = 'gitalk-container-' + label;
// divEle.className = 'gitalk-container';
// divEle.style = 'width: ' + main.clientWidth + 'px; margin: 0 auto 20px;';
// domObj.appendTo(domObj.find('.content'), divEle);
// gitalk = new Gitalk(Object.assign(gitalkConfig, { id: !label ? 'home' : label }));
// gitalk.render('gitalk-container-' + label);
// });
}
]
}
</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-pagination/dist/docsify-pagination.min.js"></script>
<!-- 复制代码 -->
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<!-- 默认是提供 emoji 解析的 -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></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/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-java.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/plugins/line-numbers/prism-line-numbers.min.js"></script>
</body>
</html>