-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (58 loc) · 1.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TuiHub Protos</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'TuiHub Protos',
repo: 'https://github.com/tuihub/protos',
logo: 'https://avatars.githubusercontent.com/TuiHub?size=128',
auto2top: true,
maxLevel: 3,
loadSidebar: true,
subMaxLevel: 3,
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
return html.replace(/<a[^>]+>/g, function (match) {
return match.toLowerCase()
})
});
},
function (hook, vm) {
hook.ready(function () {
mermaid.initialize({ startOnLoad: false });
});
hook.doneEach(function () {
mermaid.init(undefined, '.mermaid');
});
}
],
markdown: {
renderer: {
code: function (code, lang) {
var html = '';
if (code.match(/^sequenceDiagram/) || code.match(/^graph/) || code.match(/^gantt/)) {
html = '<div class="mermaid">' + code + '</div>';
}
var hl = Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup);
return html + '<pre v-pre data-lang="' + lang + '"><code class="lang-' + lang + '">' + hl + '</code></pre>';
}
}
}
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js"></script>
</body>
</html>