-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (47 loc) · 1.73 KB
/
Copy pathindex.html
File metadata and controls
49 lines (47 loc) · 1.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Guardia Docs</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/dark.css"> -->
<!-- Theme: Simple -->
<!-- Theme: Simple (light + dark) -->
<link rel="stylesheet" media="(prefers-color-scheme: light)" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css">
<link rel="stylesheet" media="(prefers-color-scheme: dark)" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css">
</head>
<body>
<div id="app">Please wait...</div>
<script>
window.$docsify = {
name: 'Guardia Docs',
repo: '',
// autoHeader: true,
routerMode: 'history',
loadSidebar: true,
loadNavbar: true,
// logo: '/_media/logo.png',
homepage: 'about.md'
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<!-- docsify-themeable -->
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
<script>
// 检查是否存在重定向信息
const redirect = sessionStorage.getItem('redirect');
if (redirect) {
// 清除存储的重定向信息
sessionStorage.removeItem('redirect');
// 使用 pushState 将路径添加到历史记录
const path = redirect.startsWith('/guardia-docs/')
? redirect.slice('/guardia-docs/'.length)
: redirect;
history.pushState(null, null, path);
}
</script>
</body>
</html>