-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
67 lines (66 loc) · 2.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TechPass Public Documentation</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- Configurable when publishing; useful for search engine optimization -->
<meta name="description" content="TechPass Public Documentation" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<!-- Import for developer documentation portal styles -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@docs-gov-sg/doc-theme-default/public/dist/doc.css" />
<!-- Import for documentation portal styles -->
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/@sg-developer-portal/[email protected]/public/dist/doc.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/@developerportalsg/docsify-plugin-toc@latest/dist/light.css"
/>
</head>
<body>
<div id="app"></div>
<!-- 1. Import mermaid.js, BEFORE the window.$docsify initialisation -->
<script src="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>
// 2. Add the two lines below before declaring the window.$docsify object:
var num = 0;
mermaid.initialize({ startOnLoad: false });
window.$docsify = {
useSGDSAccordion: true,
auto2top: true,
basePath: '/docs/',
// coverpage: true, // ../ here because its relativepath from /docs/
el: '#app',
hideSidebar: false,
homepage: 'home.md',
loadSidebar: '_sidebar.md',
maxLevel: 4,
name: 'TechPass Public Documentation',
subMaxLevel: 2,
markdown: {
renderer: {
code: function (code, lang) {
if (lang === "mermaid") {
return (
'<div class="mermaid">' +
mermaid.render("mermaid-svg-" + num++, code) +
"</div>"
);
}
return this.origin.code.apply(this, arguments);
},
},
},
}
</script>
<!-- Imports for documentation functionality on documentation portal -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-tabs/dist/docsify-tabs.min.js"></script>
<script src="https://unpkg.com/@developerportalsg/docsify-plugin-toc@latest/dist/docsify-plugin-toc.min.js"></script>
</body>
</html>