-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
79 lines (69 loc) · 2.76 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Learn Docsify</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Learn Docsify with Rajdeep Singh" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/sushantrahate/docsify-darkly-theme/css/darkly.min.css" />
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/buble.css" /> -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/dark.css" />
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/pure.css" /> -->
</head>
<body>
<div id="app">Please wait...</div>
<script src="https://cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="https://unpkg.com/docsify-share/build/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-edit-on-github"></script>
<!-- Docsify v4 -->
<script>
window.$docsify = {
share: {
theme: "slide-bar",
reddit: true,
linkedin: true,
facebook: true,
twitter: true,
whatsapp: true,
telegram: true,
},
search: "auto", // default
loadSidebar: true,
search: [
"/", // => /README.md
"/guide", // => /guide.md
],
subMaxLevel: 2,
loadNavbar: true,
coverpage: true,
search: "auto",
themeColor: "#3F51B5",
name: "Document",
repo: "officialrajdeepsingh/docsifyjs",
plugins: [
// EditOnGithubPlugin.create( 'https://github.com/officialrajdeepsingh/docsifyjs/blob/master/')
function editButton(hook, vm) {
// call the hook
hook.beforeEach(function (html) {
// https://github.com/officialrajdeepsingh/docsifyjs/edit/<branch-name>/installation.md
var url = "https://github.com/officialrajdeepsingh/docsifyjs/edit/master/" + vm.route.file;
// basic route fix
let tempFile = url.replace("docsifyjs/README.md", "README.md",)
? url.replace("docsifyjs/README.md", "README.md")
: url;
// Add Edit Button
var editHtml = "[📝 EDIT DOCUMENT](" + url + ")\n";
// Add edit button on top of file
return editHtml + html + "\n----\n" + "Last modified " + editHtml;
});
},
],
};
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script>
</body>
</html>