-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (66 loc) · 2.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CB-Geo MPM user doc</title>
<link rel="icon" href="_media/favicon.ico">
<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="//unpkg.com/docsify/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'CB-Geo C++ guide',
loadSidebar: true,
subMaxLevel: 2,
alias: {
'/.*/_sidebar.md': '/_sidebar.md'
},
repo: 'https://github.com/cb-geo/cpp-doc',
plugins: [
function (hook) {
hook.beforeEach(function (content) {
return content.replace(/\$\$([\s\S]*?)\$\$/g,
function(x){ return x.replace(/[_]/g,'[subscript]')}
)
})
hook.beforeEach(function (content) {
return content.replace(/\$([\s\S]*?)\$/g,
function(x){ return x.replace('_','[subscript]')}
)
})
hook.afterEach(function(html, next) {
html = html.replace(/\$\$([\s\S]*?)\$\$/g,
function(x){ return x.replace(/(\[subscript\])/g,'_') }
)
html = html.replace(/\$([\s\S]*?)\$/g,
function(x){ return x.replace(/(\[subscript\])/g,'_')}
)
MathJax.Hub.Queue( ["Typeset",MathJax.Hub] ) // calling it twice
MathJax.Hub.Queue( ["Typeset",MathJax.Hub] ) //fixes MathJax refresh issue
next(html)
})
}
]
}
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
</body>
</html>