-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
39 lines (37 loc) · 1.17 KB
/
main.js
File metadata and controls
39 lines (37 loc) · 1.17 KB
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
window.$docsify = {
name: 'DyteJs',
loadSidebar: true,
loadNavbar: true,
coverpage: true,
search: 'auto',
subMaxLevel: 3,
homepage: 'home.md',
repo: 'https://github.com/dytejs/dytejs',
themeColor: '#292F33',
plugins: [
function(hook) {
var footer = [
'<hr/>',
'<footer>',
'<span><a href="https://github.com/DyteJs">DyteJs</a> ©2021-' + new Date().getFullYear() + '.</span>',
'<span>Made with ❤️ By <a href="https://github.com/tobithedev" target="_blank">TøBiTheDev</a> and <a href="https://github.com/dytejs" target="blank_">DyteJs Team</a>.</span>',
'</footer>'
].join('');
hook.afterEach(function(html) {
return html + footer;
});
},
function(hook, vm) {
hook.beforeEach(function(html) {
var url =
'https://github.com/dytejs/dytejs.github.io/docs/blob/master/docs/' +
vm.route.file;
var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n';
return (
editHtml +
html
);
});
}
]
}