-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (88 loc) · 3.57 KB
/
index.html
File metadata and controls
89 lines (88 loc) · 3.57 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
87
88
89
<!DOCTYPE html>
<html lang="zh">
<head>
<title>JsHook Document</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1">
<meta name="referrer" content="never">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<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>
<div id="app"></div>
<script type="text/javascript">
// 首次访问时根据浏览器语言自动跳转到对应语言文档
(function() {
var hash = window.location.hash;
// 仅在首页(无 hash 或 hash 为空/#/)时自动跳转
if (!hash || hash === '#/' || hash === '#') {
var lang = (navigator.language || navigator.userLanguage || '').toLowerCase();
// 非中文浏览器跳转到英文文档
if (lang && !lang.startsWith('zh')) {
window.location.hash = '#/en/';
}
}
})();
window.$docsify = {
name: 'JsHook Document',
repo: 'https://github.com/JsHookApp',
notFoundPage: '404.md',//在找不到指定页面时加载_404.md
loadSidebar: 'sidebar.md',//加载自定义侧边栏_sidebar.md
subMaxLevel: 2,//生成目录的最大层级
loadNavbar: 'navbar.md',//加载自定义导航栏_navbar.md
auto2top: true,//切换页面后是否自动跳转到页面顶部
coverpage: {
'/en/': 'coverpage.md',
'/': 'coverpage.md'
},//启用封面页
themeColor: '#2C3E50',//替换主题色,
homepage: 'README.md',//设置首页文件
requestHeaders: {
'Cache-Control': 'no-cache',
'Pragma': 'no-cache'
},
search: {
noData: {
'/en/': 'No results found',
'/': '没有找到结果'
},
placeholder: {
'/en/': 'Search',
'/': '输入关键词搜索'
}
},
alias: {
'/en/.*sidebar.md': '/en/sidebar.md',
'/en/.*navbar.md': '/en/navbar.md',
'/.*/sidebar.md': '/sidebar.md',
'/.*/navbar.md': '/navbar.md'
},
copyCode: {
buttonText: {
'/en/': 'Copy',
'/': '复制'
},
errorText: {
'/en/': 'Copy failed',
'/': '复制失败'
},
successText: {
'/en/': 'Copy successful',
'/': '复制成功'
}
}
};
</script>
<script type="text/javascript" src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script type="text/javascript" src="//unpkg.com/docsify-copy-code@2"></script>
<script type="text/javascript" src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<script type="text/javascript" src="//unpkg.com/docsify/lib/plugins/zoom-image.min.js"></script>
<script type="text/javascript" src="//unpkg.com/prismjs/components/prism-json.min.js"></script>
<script type="text/javascript" src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
<script type="text/javascript" src="//unpkg.com/prismjs/components/prism-php.min.js"></script>
<script type="text/javascript" src="//unpkg.com/prismjs/components/prism-javascript.min.js"></script>
</body>
</html>