-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
247 lines (205 loc) · 8.38 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Typikon Book</title>
<meta name="description" content="Typikon name derived from Typikon Book, the a static website rendering tool similar to mdbook and hugo, but it focuses only on rendering markdown into an online book, and is easier to use than the other tools.
" />
<meta name="keywords" content="typikon,book,website,generator,static,html,css,js,theme,rust" />
<meta name="generator" content="typikon" />
<meta name="template" content="typikon-theme" />
<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
<link rel="stylesheet" href="/assets/typikon.css">
<!-- Light theme stylesheet -->
<link rel="stylesheet" href="/assets/light-theme.css" id="light-theme">
<!-- Dark theme stylesheet (initially disabled) -->
<link rel="stylesheet" href="/assets/dark-theme.css" id="dark-theme" disabled>
<link rel="icon" href="/assets/icon.png" type="image/png">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-12">
<div class="flex-shrink-0 p-2" style="width: 100%;">
<a href="/index.html"
class="d-flex align-items-center justify-content-center pb-3 mb-3 link-body-emphasis text-decoration-none border-bottom">
<span class="fs-4 fw-semibold">Typikon Book</span>
</a>
<ul class="list-unstyled ps-0">
<li class="mb-1">
<a class="btn d-inline-flex align-items-center rounded border-0"
href="/english/index.html">
English
</a>
<div class="collapse show" id="collapse1">
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
<li>
<a href="/english/introduce.html"
class="link-body-emphasis d-inline-flex text-decoration-none rounded">
Introduce
</a>
</li>
<li>
<a href="/english/quickstart.html"
class="link-body-emphasis d-inline-flex text-decoration-none rounded">
Quick Start
</a>
</li>
<li>
<a href="/english/settings.html"
class="link-body-emphasis d-inline-flex text-decoration-none rounded">
Settings
</a>
</li>
</ul>
</div>
</li>
<li class="mb-1">
<a class="btn d-inline-flex align-items-center rounded border-0"
href="/chinese/index.html">
简体中文
</a>
<div class="collapse show" id="collapse1">
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
<li>
<a href="/chinese/introduce-zh.html"
class="link-body-emphasis d-inline-flex text-decoration-none rounded">
概述介绍
</a>
</li>
<li>
<a href="/chinese/quickstart-zh.html"
class="link-body-emphasis d-inline-flex text-decoration-none rounded">
快速开始
</a>
</li>
<li>
<a href="/chinese/settings-zh.html"
class="link-body-emphasis d-inline-flex text-decoration-none rounded">
自定义设置
</a>
</li>
</ul>
</div>
</li>
<li class="border-top my-3"></li>
<li class="mb-3 mb-md-0 text-body-secondary">Copyright © Typikon Inc</li>
</ul>
</div>
</div>
<div class="col-md-8 col-sm-12">
<div id="markdown-content">
<h2>Typikon</h2>
<p>Typikon lets you use markdown to write your online books.</p>
<hr />
<div style="display: flex; gap: 5px;">
<img src="https://img.shields.io/badge/📖%20Typikon-Rust%20🦀️-yellow" alt="Typikon Rust CLI" />
<img src="https://codecov.io/github/auula/typikon/branch/main/graph/badge.svg?token=FaR2OdNYeB" alt="Codecov" />
<img src="https://img.shields.io/badge/license-Apache-db5149.svg" alt="License" />
<img src="https://github.com/auula/typikon/actions/workflows/rust.yml/badge.svg?event=push" alt="Action" />
<img src="https://img.shields.io/twitter/follow/auula_?style=social" alt="Twitter URL" />
</div>
<hr />
<h3>Introduce</h3>
<p><img src="https://img.ibyte.me/w3uchi.png" alt="Typikon Image"
style="float: left; margin: 0px 20px 10px 10px;height: 100px;" /></p>
<p>Typikon name derived from <a href="https://en.wikipedia.org/wiki/Typikon">Typikon</a> Book, the a static website rendering tool similar to mdbook and gitbook, but it focuses only on rendering markdown into an online book, and is easier to use than the other tools.</p>
<hr />
<blockquote>
<p>GitHub: <a href="https://github.com/auula/typikon">github.com/auula/typikon</a> 🌟</p>
</blockquote>
<hr />
<h3>Feature</h3>
<ul>
<li>Support Dark & Light theme</li>
<li>Support CSS & JS custom</li>
<li>Only focus on directory and file mapping</li>
<li>Rendering static files to facilitate deployment</li>
</ul>
<hr />
</div>
</div>
</div>
</div>
<script src="/assets/highlight/highlight.min.js"></script>
<script src="/assets/highlight/languages/shell.min.js"></script>
<script src="/assets/highlight/languages/sql.min.js"></script>
<script src="/assets/highlight/languages/java.min.js"></script>
<script src="/assets/highlight/languages/rust.min.js"></script>
<script src="/assets/highlight/languages/javascript.min.js"></script>
<script src="/assets/highlight/languages/c.min.js"></script>
<script src="/assets/highlight/languages/cpp.min.js"></script>
<script src="/assets/highlight/languages/kotlin.min.js"></script>
<script src="/assets/highlight/languages/rust.min.js"></script>
<script src="/assets/highlight/languages/python.min.js"></script>
<script src="/assets/highlight/languages/csharp.min.js"></script>
<script src="/assets/highlight/languages/css.min.js"></script>
<script src="/assets/highlight/languages/swift.min.js"></script>
<script src="/assets/highlight/languages/xml.min.js"></script>
<script src="/assets/highlight/languages/yaml.min.js"></script>
<script src="/assets/highlight/languages/ruby.min.js"></script>
<script src="/assets/highlight/languages/php.min.js"></script>
<script src="/assets/highlight/languages/go.min.js"></script>
<script src="/assets/highlight/languages/dart.min.js"></script>
<script src="/assets/highlight/languages/bash.min.js"></script>
<script src="/assets/highlight/languages/dockerfile.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/bootstrap.bundle.js"></script>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
const darkThemeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
const lightThemeLink = document.getElementById('light-theme');
const darkThemeLink = document.getElementById('dark-theme');
changeTheme = (mediaQuery) => {
if (mediaQuery.matches) {
// Dark mode
lightThemeLink.setAttribute('disabled', true);
darkThemeLink.removeAttribute('disabled');
} else {
// Light mode
darkThemeLink.setAttribute('disabled', true);
lightThemeLink.removeAttribute('disabled');
}
};
// Initial check
changeTheme(darkThemeMediaQuery);
// Listen for changes in OS theme
darkThemeMediaQuery.addListener(changeTheme);
// 初始化 highlight.js
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightElement(block);
});
// 添加自定义 md-p 样式
var markdownContent = document.getElementById('markdown-content');
if (markdownContent) {
var paragraphs = markdownContent.querySelectorAll('p');
paragraphs.forEach(function (paragraph) {
paragraph.classList.add('md-p');
});
}
});
// 监听系统主题切换操作
window.onload = () => {
const darkThemeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
const lightThemeLink = document.getElementById('light-theme');
const darkThemeLink = document.getElementById('dark-theme');
changeTheme = (mediaQuery) => {
if (mediaQuery.matches) {
// Dark mode
lightThemeLink.setAttribute('disabled', true);
darkThemeLink.removeAttribute('disabled');
} else {
// Light mode
darkThemeLink.setAttribute('disabled', true);
lightThemeLink.removeAttribute('disabled');
}
};
// Initial check
changeTheme(darkThemeMediaQuery);
// Listen for changes in OS theme
darkThemeMediaQuery.addListener(changeTheme);
};
</script>
</body>
</html>