-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (76 loc) · 2.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Operations document</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="icon" href="favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'DOCS-OPS',
repo: 'https://github.com/suboat/docs-ops',
loadSidebar: true,
relativePath: true,
alias: {
// default
'/_sidebar.md': '/zh-cn/_sidebar.md',
// i18n
'/zh-cn/_navbar.md': '/_navbar.md',
'/en/_navbar.md': '/_navbar.md',
},
subMaxLevel: 3,
loadNavbar: true,
markdown: {
renderer: {
code: function (code, lang) {
if (lang === "mermaid") {
return (
'<div class="mermaid">' + mermaid.render(lang, code) + "</div>"
);
}
return this.origin.code.apply(this, arguments);
}
}
},
copyCode: {
buttonText: {
'/zh-cn/': '点击复制',
'/ru/': 'Скопировать в буфер обмена',
'/de-de/': 'Klicken Sie zum Kopieren',
'/es/': 'Haga clic para copiar',
'/': 'Copy to clipboard'
},
errorText: {
'/zh-cn/': '复制失败',
'/ru/': 'ошибка',
'/': 'Error'
},
successText: {
'/zh-cn/': '复制成功',
'/ru/': 'Скопировано',
'/de-de/': 'Kopiert',
'/es/': 'Copiado',
'/': 'Copied'
}
}
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-go.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-sql.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script src="//unpkg.com/docsify-copy-code@2"></script>
<script>
mermaid.initialize({startOnLoad: false});
</script>
</body>
</html>