-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (78 loc) · 3.3 KB
/
Copy pathindex.html
File metadata and controls
86 lines (78 loc) · 3.3 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>java-basic文档</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>
<!--初始化时会显示 Loading... 内容-->
<div id="app">Loading...</div>
<script>
window.$docsify = {
loadSidebar: true, //定制侧边栏
subMaxLevel: 2, //自定义侧边栏同时也可以开启目录功能
maxLevel: 4, //最大支持渲染的标题层级
coverpage: true, //设置封面
auto2top: true, //切换页面后是否自动跳转到页面顶部
notFoundPage: true, //加载404压面
name: 'java-basic', //项目名称
nameLink: 'http://www.jordanzhang.xyz/java-basic/#/',
repo: 'https://github.com/JordanHank/java-basic.git', //仓库地址
// 完整配置参数
search: {
paths: 'auto', // or 'auto'
placeholder: '搜索',
noData: '找不到结果',
},
//自定义插件
plugins: [
function (hook) {
hook.init(function() {
// 初始化时调用,只调用一次,没有参数。
})
hook.beforeEach(function(content) {
// 每次开始解析 Markdown 内容时调用
return content
})
var footer = [
'<hr/>',
'<footer>',
'<span>Collated by <a href="http://www.jordanzhang.xyz" target="_blank">Jordan Zhang</a>.</span>',
'</footer>'
].join('')
hook.afterEach(function (html) {
// 解析成 html 后调用。beforeEach 和 afterEach 支持处理异步逻辑
// 异步处理完成后调用 next(html) 返回结果
return html + footer
})
hook.doneEach(function() {
// 每次路由切换时数据全部加载完成后调用,没有参数。
// ...
})
hook.mounted(function() {
// 初始化完成后调用 ,只调用一次,没有参数。
})
hook.ready(function() {
// 初始化并第一次加完成数据后调用,没有参数。
})
}
]
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
<script src="//unpkg.com/vue"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
<script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
<script src="//unpkg.com/docsify-copy-code"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.js"></script>
<script src="//unpkg.com/prismjs/components/prism-php.js"></script>
<script src="//unpkg.com/prismjs/components/prism-java.js"></script>
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
</body>
</html>