-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
106 lines (105 loc) · 3.45 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
98
99
100
101
102
103
104
105
106
<!--
* @Author: Carl
* @Date: 2020-05-25 19:50:00
* @LastEditors: Carl
* @LastEditTime: 2021-12-13 14:21:38
-->
<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
<meta charset="UTF-8" />
<title>酷宅开放平台 4.3</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta
name="description"
content="酷宅推出的在线接口文档平台,为开发者免费提供:酷宅所有对外接口的详细介绍,Touch配网、AP配网的全流程说明,支持中英文,方便国内外开发者使用。"
/>
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<link rel="shortcut icon" href="./media/img/favicon.ico" />
<link rel="stylesheet" href="./media/css/vue.css" />
<link rel="stylesheet" href="./media/css/style.css" />
<link
rel="stylesheet"
media="screen and (min-width:640px)"
href="./media/css/phone.css"
/>
</head>
<body>
<nav>
<a href="#/en/PlatformOverview">English</a>
<a href="#/zh-cmn/平台概述">简体中文</a>
</nav>
<div id="app"></div>
<script>
// TODO:兼容旧域名
// BUG: ok
// FIXME: 123
const my_href = new Set([
'https://coolkit-technologies.github.io/apiDocs/index.html',
'https://coolkit-technologies.github.io/apiDocs/index.html#/',
'https://coolkit-technologies.github.io/apiDocs/',
'https://coolkit-technologies.github.io/apiDocs/#/',
])
let my_url = window.location.href
if (my_href.has(my_url)) {
window.location.href =
'https://coolkit-technologies.github.io/eWeLink-API/#/'
}
window.$docsify = {
name: {
'/zh-cmn/': '酷宅开放平台 4.3',
'/en/': 'CoolKit Open Platform 4.3',
},
nameLink: {
'/zh-cmn/': '#/zh-cmn/平台概述',
'/en/': '#/en/PlatformOverview',
},
repo: '',
coverpage: true,
onlyCover: true,
search: 'auto', // 默认值
search: [
'/zh-cmn',
'/en', // => /README.md
],
loadSidebar: true,
autoHeader: false,
subMaxLevel: 3,
noEmoji: true,
notFoundPage: {
'/': 'zh-cmn/_404.md',
'/zh-cmn': 'zh-cmn/_404.md',
'/en': 'en/_404.md',
},
formatUpdated: '{MM}/{DD} {HH}:{mm}',
search: {
paths: 'auto',
placeholder: {
'/zh-cmn/': 'Search',
'/en/': 'Search',
},
noData: {
'/zh-cmn/': '找不到结果',
'/en/': 'No Results',
},
},
count: {
countable: true,
fontsize: '0.9em',
color: 'rgb(90,90,90)',
language: 'english',
},
}
</script>
<!-- <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> -->
<!-- <script src="https://unpkg.com/docsify/lib/plugins/search.js"></script> -->
<script src="./media/js/docsify_4.12.2.js"></script>
<script src="./media/js/search.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="./media/js/docsify-copy-code.min.js"></script>
<script src="./media/js/countable.js"></script>
</body>
</html>