forked from datawhalechina/easy-rl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (113 loc) · 5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>蘑菇书EasyRL</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css"> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js"></script> -->
<!-- <link rel="stylesheet" href="//unpkg.com/docsify@4.7.0/lib/themes/vue.css"> -->
<style>
.katex-display > .katex {
max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
}
</style>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: '蘑菇书EasyRL',
repo:'https://github.com/datawhalechina/easy-rl',
loadSidebar: true,
subMaxLevel: 3,
pagination:{
previousText:'上一篇',
nextText:'下一篇',
},
// markdown: {
// latexRender: katex.renderToString.bind(katex)
// },
search:{
placeholder:'搜索',
noData:'找不到结果',
paths:'auto',
depth:6
},
plugins: [
function(hook, vm) {
hook.beforeEach(function(content) {
// 每次开始解析 Markdown 内容时调用
// 将所有../img替换成img
// https://github.com/docsifyjs/docsify/issues/936
return content.replace(/..\/img/g, "img");
})
// hook.doneEach(function () {
// window.MathJax.Hub.Queue(["Typeset", MathJax.Hub, document.getElementById('app')]);
// })
}
],
}
</script>
<!-- 公式 -->
<!-- <script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
skipTags: ["script", "noscript", "style", "textarea", "pre", "code", "a"]
},
"HTML-CSS": { fonts: ["TeX"] }
});
</script> -->
<!-- <script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script> -->
<!-- or <script src="//cdn.jsdelivr.net/gh/upupming/docsify-katex/dist/docsify-katex.js"></script> -->
<!-- CDN files for docsify-katex -->
<!-- <script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css" />
<script src="https://cdn.jsdelivr.net/npm/marked@3"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
<!-- Put them above docsify.min.js -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-python.min.js"></script>
<!-- gitalk for comments -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
<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>
const gitalk = new Gitalk({
clientID: '1a90828b637703f6c3d4',
clientSecret: '88d1ea6457d8e9554b33e94bb38d61ba9a2070ea',
repo: 'easy-rl',
owner: 'datawhalechina',
admin: ['datawhalechina','qiwang067','yyysjz1997','JohnJim0816'],
title: location.hash.match(/#(.*?)([?]|$)/)[1], // 这个是设置 issue 对应的标题
id: location.hash.match(/#(.*?)([?]|$)/)[1],
// facebook-like distraction free mode
distractionFreeMode: false
})
// 监听URL中hash的变化,如果发现换了一个MD文件,那么刷新页面,解决整个网站使用一个gitalk评论issues的问题。
window.onhashchange = function(event){
if(event.newURL.split('?')[0] !== event.oldURL .split('?')[0]) {
location.reload()
}
}
</script> -->
<!-- <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -->
<!-- <script src="//unpkg.com/docsify@4.7.0/lib/docsify.min.js"></script> -->
</body>
</html>