-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
102 lines (97 loc) · 4.56 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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8"/>
<title>吴翱翔的博客</title>
<meta name="description" content="吴翱翔的博客 - Rust/C++ developer, manjaro/KDE user"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- <link rel="icon" href="http://showmethemoney.sweetysoft.com/image_after_2019_06/1851/favicon.ico"> -->
<link rel="stylesheet" href="/assets/vue.css"/>
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify@latest/lib/themes/vue.css"> -->
<link rel="stylesheet" href="/assets/my_style.css"/>
<!-- <link rel="stylesheet" href="https://amzn.github.io/style-dictionary/assets/styles.css"/> -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css"/>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-dark-mode@latest/dist/style.min.css"/>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.css">
</head>
<body>
<div id="app"></div>
<script src="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>
var num = 0;
mermaid.initialize({ startOnLoad: false });
window.$docsify = {
// 警告:历史模式下请求old会返回old文件夹目录,而hash模式会返回404
// 错误:历史模式下docsify无法热重载
// routerMode: 'history',
alias: {'/.*/README.md': 'README.md'},
executeScript: true,
homepage: 'README.md',
repo: 'pymongo/pymongo.github.io',
loadSidebar: 'README.md',
subMaxLevel: 3,
themeColor: "#42b983", // for dark mode
noEmoji: true, // prevent std::fs::metadata resolve column to emoji
darkMode: {
dark: {
background: "#1c2022",
toggleBtnBg: "#34495e",
textColor: "#d4d4d4"
},
light: {
background: "#ebebeb",
toggleBtnBg: "var(--theme-color)",
textColor: "#202528"
}
},
search: {
paths: 'auto',
placeholder: 'Search',
noData: 'No result'
},
pagination: {
previousText: 'PREVIOUS',
nextText: 'NEXT',
crossChapter: true
},
markdown: {
renderer: {
code: function(code, lang) {
if (lang === "mermaid") {
return (
'<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
);
}
return this.origin.code.apply(this, arguments);
}
}
}
}
const gitalk = new Gitalk({
clientID: '3f7bb4e684db807b9a4d',
clientSecret: '01181c51d8783713c3de5603bcfbc7d493f4632c',
repo: 'pymongo.github.io',
owner: 'pymongo',
admin: ['pymongo'],
// facebook-like distraction free mode
distractionFreeMode: false
})
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
<script src="https://unpkg.com/docsify-gitalk@1.0.0/dist/docsify-gitalk.min.js"></script>
<!-- flexible-alerts会引入font-awesome -->
<script src="//cdn.jsdelivr.net/npm/docsify@latest/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify@latest/lib/plugins/search.min.js"></script>
<!-- FIXME use.fontawesome.com 被墙,而且 fontawesome 的 css 有多层依赖不容易下载到本地,所以先停用 -->
<!--<script src="//cdn.jsdelivr.net/npm/docsify-plugin-flexible-alerts/dist/docsify-plugin-flexible-alerts.min.js"></script>-->
<script src="//cdn.jsdelivr.net/npm/docsify-pagination@latest/dist/docsify-pagination.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code@latest/dist/docsify-copy-code.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@latest/dist/docsify-tabs.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-dark-mode@latest/dist/index.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@latest/components/prism-rust.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@latest/components/prism-c.min.js"></script>
</body>
</html>