forked from WebFreak001/code-debug
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
97 lines (88 loc) · 3.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="code-debug 项目文档">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>code-debug 项目</title>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
<style>
figure {
text-align: center;
}
.myImageClass {
width: 100vw;
height: auto;
}
@media (min-width: 768px) {
.myImageClass {
width: 40vw;
}
}
</style>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'code-debug 项目',
repo: 'https://github.com/chenzhiy2001/code-debug',
loadSidebar: true,
sidebar: './_sidebar.md', //侧边栏Markdown件路径
homepage: '说明文档.md',
search: 'auto',
//配置侧边栏导航(同时使用nav配置)
nav: [
{ name: '项目介绍', path: '说明文档.md' },
{ name: '记录文档', path: './docs/readme.md' },
{ name: '安装和使用方法', path: './installation%20and%20usage/readme.md' },
],
markdown: {
renderer: {
image: function(href, title, text) {
var image_html = this.origin.image.apply(this, arguments);
return '<figure>' + image_html + '<figcaption>' + text + '</figcaption></figure>';
}
}
},
subMaxLevel: 2,
hideCode: {
scroll: true,
height: 460,
},
count: {
countable: true,
position: 'top',
margin: '10px',
float: 'right',
fontsize: '0.9em',
color: 'rgb(90,90,90)',
localization: {
words: "",
minute: ""
},
isExpected: true
}
}
</script>
<!-- Docsify核心脚本 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<!-- Prism.js代码高亮插件 -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/components/prism-c.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/components/prism-rust.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/components/prism-bash.min.js"></script>
<!-- Katex支持数学公式 -->
<script src="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css" />
<!-- Marked.js渲染 Markdown -->
<script src="//cdn.jsdelivr.net/npm/marked@4"></script>
<!-- docsify-hide-code插件 -->
<script src="https://cdn.jsdelivr.net/npm/docsify-hide-code/dist/docsify-hide-code.min.js"></script>
<!-- docsify-count插件 -->
<script src="https://cdn.jsdelivr.net/npm/docsify-count@latest/dist/countable.min.js"></script>
<!-- docsify-katex插件 -->
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
</body>
</html>