-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
89 lines (87 loc) · 2.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>InstaHub Dokumentation</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="css/plyr.css" />
<link rel="stylesheet" href="css/vue.css">
<link rel="stylesheet" href="css/vue-boxes.css">
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<noscript>Your browser does not support JavaScript!</noscript>
<div id="app"></div>
<script src="js/plyr.js"></script>
<script>
window.$docsify = {
name: 'InstaHub',
homepage: 'index.md',
auto2top: true,
loadSidebar: true,
subMaxLevel: 2,
//themeColor: '#337ab7',
search: {
depth: 2,
noData: {
'/de-de/': 'Keine Ergebnisse!',
'/zh-cn/': '没有结果!',
'/': 'No results!'
},
placeholder: 'Suche'
},
markdown: {
smartypants: true,
renderer: {
paragraph: function (text) {
var result;
if (/^!>/.test(text)) {
result = helper('tip', text);
} else if (/^\?>/.test(text)) {
result = helper('warn', text);
} else if (/^s>/.test(text)) {
result = helper('alert alert-success', text);
} else if (/^i>/.test(text)) {
result = helper('alert alert-info', text);
} else if (/^w>/.test(text)) {
result = helper('alert alert-warning', text);
} else if (/^d>/.test(text)) {
result = helper('alert alert-danger', text);
} else if (/^t>/.test(text)) {
result = helper('alert alert-task', text);
} else if (/^h>/.test(text)) {
result = helper('alert alert-help', text);
} else {
result = "<p>" + text + "</p>";
}
return result;
function helper(className, content) {
return ("<p class=\"" + className + "\">" + (content.slice(5).trim()) + "</p>")
}
}
}
},
formatUpdated: '{DD}.{MM}.{YYYY} {HH}:{mm}',
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
var url = 'https://github.com/wi-wissen/instahub-doc-de/blob/master/' + vm.route.file
var editHtml = '[Edit on GitHub](' + url + ')\n'
return "<p style='text-align:right;'>{docsify-updated}<p>\n\n" + html
+ '\n\n----\n'
+ editHtml
});
hook.doneEach(function() {
const players = Plyr.setup('.plyr__video-embed');
});
}
],
}
</script>
<script src="js/docsify.min.js"></script>
<script src="js/search.min.js"></script>
<script src="js/prism-sql.min.js"></script>
</body>
</html>