-
Notifications
You must be signed in to change notification settings - Fork 21
/
docsify.template.js
37 lines (34 loc) · 1.1 KB
/
docsify.template.js
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
// {
// name: '{{name}}',
// repo: '',
// loadSidebar: true,
// auto2top: true,
// homepage: 'index.md',
// plantuml: {
// skin: 'classic'
// },
// stylesheet: ''
// }
module.exports = options => {
return `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Custom Template example</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="${options.stylesheet}">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = ${JSON.stringify(options, null, 2)};
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify-plantuml/dist/docsify-plantuml.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
</body>
</html>`;
};