Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (71 loc) · 2.88 KB
/
Copy pathindex.html
File metadata and controls
71 lines (71 loc) · 2.88 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
<!DOCTYPE html>
<html>
<head>
<title>Cadmin</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
</head>
<body>
<div id="app">加载中...</div>
<script>
window.$docsify = {
loadSidebar: true,
alias: {
'/server/php': 'https://raw.githubusercontent.com/baiy/Cadmin-server-php/master/README.md',
'/server/go': 'https://raw.githubusercontent.com/baiy/Cadmin-server-go/master/README.md',
'/client/vue': 'https://raw.githubusercontent.com/baiy/Cadmin-client-vue/master/README.md',
'/client/react': 'https://raw.githubusercontent.com/baiy/Cadmin-client-react/master/README.md',
},
subMaxLevel: 4,
auto2top: true,
formatUpdated: '{MM}/{DD} {HH}:{mm}',
repo: 'https://github.com/baiy/Cadmin',
search: {
placeholder: '搜索文档',
paths: "auto",
noData: "没有结果!",
depth: 4
},
copyCode: {
buttonText : '复制代码',
errorText : 'Error',
successText: 'Copied'
},
pagination: {
previousText: '上一章节',
nextText: '下一章节',
crossChapter: true
},
plugins: [
function (hook, vm) {
hook.afterEach(function (html) {
let file = "https://github.com/baiy/Cadmin/edit/master/" + vm.route.file
if (vm.route.file.indexOf("https://") !== -1){
file = vm.route.file.replace(/raw\.githubusercontent\.com/,"github.com").replace(/\/master\//,"/edit/master/")
}
return [
'<div style="overflow: auto">',
'<p style="float: right"><a href="'+file+'" target="_blank">',
'Edit on github',
'</a></p>',
'</div>'
].join('')+html
})
},
]
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-go.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-php.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-json.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-sql.min.js"></script>
<script src="//unpkg.com/docsify-copy-code"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
</body>
</html>