forked from docsifyjs/docsify
-
Notifications
You must be signed in to change notification settings - Fork 8
/
dev.html
97 lines (89 loc) · 3.17 KB
/
dev.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>docsify</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="//unpkg.com/docsify-copy-code/styles.css">
<link href="http://cdn.bootcss.com/highlight.js/9.9.0/styles/github.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/prism/9000.0.1/themes/prism.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/prism/9000.0.1/plugins/line-numbers/prism-line-numbers.min.css" rel="stylesheet">
<link rel="stylesheet" href="/themes/vue.css" title="vue">
<style>
nav.app-nav li ul {
min-width: 100px;
}
</style>
</head>
<body>
<div id="app"></div>
<script src="//unpkg.com/docsify-copy-code/index.js"></script>
<script>
window.$docsify = {
// alias: {
// '.*?/changelog': 'https://raw.githubusercontent.com/QingWei-Li/docsify/master/CHANGELOG',
// '/.*/_navbar.md': '/_navbar.md'
// },
search: {
placeholder: '搜索',
noData: "无结果"
},
alias: {
'/.*/_sidebar.md': '/_sidebar.md'
},
repo: 'zhangjikai/notes',
auto2top: true,
basePath: '/docs/',
executeScript: true,
loadNavbar: false,
loadSidebar: true,
coverpage: false,
name: '',
subMaxLevel: 2,
mergeNavbar: false,
formatUpdated: '{YYYY}-{MM}-{DD}',
showLevel: true,
tocLevel: 3,
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
// console.log(vm.compiler.toc)
//console.log(html)
// vm.compiler._calTocStart(html);
// return html
// + '\n---\n'
// + '最后修改时间 {docsify-updated} '
return html;
})
hook.afterEach((html) => {
// console.log(vm.render);
// console.log(html)
// html = ""
// console.log(vm.compiler.toc)
})
},
window.DocsifyCopyCodePlugin.init()
]
}
</script>
<script src="/lib/docsify.js"></script>
<script src="lib/plugins/highlight.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
<!--<script src="//unpkg.com/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//unpkg.com/gitalk/dist/gitalk.min.js"></script>-->
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<!--<script src="//unpkg.com/docsify/lib/plugins/disqus.min.js"></script>-->
<!--<script>
const gitalk = new Gitalk({
clientID: 'Iv1.493ea1871e632724',
clientSecret: '1bf12e179bc46ee5d7f469b0dbf7ca1c20d650c5',
repo: 'comment',
owner: 'zhangjikai',
admin: ['zhangjikai'],
distractionFreeMode: false
})
</script>-->
</body>
</html>