-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·122 lines (116 loc) · 4.82 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
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="zh_CN">
<head>
<meta charset="UTF-8">
<title>Jangrui's Docs</title>
<meta name="keywords" content="linux,linux运维,linux运维笔记">
<meta name="description" content="学习linux运维笔记。">
<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="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
<link rel="apple-touch-icon" href="./_media/apple-touch-icon.png">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: '首页',
nameLink: '/',
logo: '/_media/logo-100.png',
repo: 'jangrui/docs.jangrui.com',
// maxLevel: 4, //标题层渲染
// loadNavbar: true, //导航栏
// loadNavbar: '_navbar.md',
// alias: {
// '/.*/_navbar.md': '/_navbar.md'
// },
loadSidebar: true, //侧边栏
subMaxLevel: 4,
alias: {
'/.*/_sidebar.md': '/_sidebar.md'
},
auto2top: true, //自动跳转到页面顶部
// coverpage: true, //启用封面页
coverpage: {
'/': '_coverpage.md',
'/rhce/': '_coverpage.md',
},
mergeNavbar: true, //小屏设备下合并导航栏到侧边栏
notFoundPage: '_404.md',
formatUpdated: '更新时间:{YYYY}/{MM}/{DD} {HH}:{mm}',
pagination: {
previousText: '上一章节',
nextText: '下一章节',
},
search: {
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
paths: [], // or 'auto'
placeholder: '找东西,戳我试试',
noData: '咳咳,迷路了!',
// 搜索标题的最大程级, 1 - 6
depth: 6
},
plugins: [
// 编辑按钮
function(hook, vm) {
hook.beforeEach(function (html) {
var url = 'https://github.com/jangrui/docs/blob/master/' + vm.route.file
var editHtml = '[📝 编辑文档](' + url + ')\n'
return editHtml
+ html
// + '\n----\n'
// + ' - {docsify-updated} '
// + editHtml
})
},
// 底板
function (hook) {
var footer = [
'<hr/>',
'<footer>',
'<span><a href="https://docs.jangrui.com/#/">Jangrui\'s Docs</a> ©2019.</span>',
'<span>Proudly published with <a href="https://github.com/jangrui/docs.jangrui.com" target="_blank">Github : Docs</a>.</span>',
'</footer>'
].join('')
hook.afterEach(function (html) {
return html + footer
})
},
]
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/external-script.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></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>
<!-- 代码高亮 -->
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-php.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-java.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-powershell.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-python.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-go.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-docker.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-yaml.min.js"></script>
<!-- PDFObject.js is a required dependency of this plugin -->
<script src="//cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-pdf-embed-plugin/src/docsify-pdf-embed.js"></script>
<!-- docsify-tabs (latest v1.x.x) -->
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
<style>
:root {
--docsifytabs-border-color: #ededed;
--docsifytabs-tab-highlight-color: #42b983;
--docsifytabs-tab-highlight-px: 39px;
--docsifytabs-border-px: 0;
--docsifytabs-content-padding: 0;
}
</style>
</body>
</html>