-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
117 lines (102 loc) · 4.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no, viewport-fit=cover">
<meta name="description" content="">
<title></title>
<!-- Themes (light + dark) -->
<link rel="stylesheet" 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">
<!-- Custom Styles -->
<style>
/* settings */
:root {
/* approx oklch(56% 0.26 335) */
--theme-hue: 307;
--theme-saturation: 100%;
--theme-lightness: 38%;
--mono-hue: 307;
--mono-saturation: 0%;
--content-max-width: 100em;
--content-max-width: min(max(90vw, 55em), 110em);
--sidebar-toggle-width: 40px;
--sidebar-toggle-height: 44px;
--link-color: hsl(var(--theme-hue), var(--theme-saturation), var(--theme-lightness));
--link-color--hover: hsl(var(--theme-hue), var(--theme-saturation), calc(var(--theme-lightness) - 10%));
--selection-color: hsla(var(--theme-hue), var(--theme-saturation), var(--theme-lightness), 0.25);
}
@media (prefers-color-scheme: dark) {
:root {
/* approx oklch(70% 0.23 335) */
--theme-hue: 310;
--theme-saturation: 83%;
--theme-lightness: 64%;
--mono-hue: 310;
--mono-saturation: 0%;
--link-color: hsl(var(--theme-hue), var(--theme-saturation), var(--theme-lightness));
--link-color--hover: hsl(var(--theme-hue), var(--theme-saturation), calc(var(--theme-lightness) + 10%));
}
}
/* theme overrides */
.sidebar {
height: 100%; /* original: 100vh, prevents iOS Safari from overflowing content behind tab bar
as in Safari 100vh is the window height including overflow */
}
.sidebar, .sidebar-toggle, .sidebar+.content {
transition-timing-function: ease-in-out; /* original: ease-out */
}
.markdown-section {
padding: 2rem 50px; /* original: 2rem 45px, compensates --sidebar-toggle-width */
}
a strong {
color: unset;
}
</style>
</head>
<body>
<div id="app"></div>
<noscript>
<div style="text-align: center;">JavaScript is disabled in your browser, which is required to load this page.</div>
</noscript>
<script>
// Docsify Configuration
window.$docsify = {
loadSidebar: true,
subMaxLevel: 2,
auto2top: true,
notFoundPage: true,
routerMode: 'history',
alias: {
'/personal-diary/faq':
'https://raw.githubusercontent.com/wxwern/personal-diary/master/FAQ',
'/personal-diary/changelog':
'https://raw.githubusercontent.com/wxwern/personal-diary/master/CHANGELOG',
'/personal-diary/export-data-format':
'https://raw.githubusercontent.com/wxwern/personal-diary/master/data_format/DOCS',
},
search: {
maxAge: 1 * 60 * 60 * 1000, // expiration time in ms
paths: 'auto',
placeholder: 'Type to search...',
noData: 'No Results!',
depth: 6,
hideOtherSidebarContent: false,
},
};
</script>
<script>
// Service Worker Registration for Offline Access
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('/sw.js')
}
</script>
<!-- Main -->
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
<!-- Extras -->
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/zoom-image.min.js"></script>
</body>
</html>