forked from cardano-community/support-faq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
156 lines (156 loc) · 6.86 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cardano Community Support FAQ</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=0.1">
<!--link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/pure.css"-->
<!--link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css"-->
<!--link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/buble.css"-->
<!--link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-defaults.min.css"-->
<!--link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css"-->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css" title="docsify-darklight-theme" type="text/css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.css">
<script src="//cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
<style>.github-corner svg {color: #fff;fill: var(--accent);height: 50px;width: 50px;}</style>
<style>nav.app-nav li ul {min-width: 100px;}</style>
<style>td::before { display: none }</style>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
//alias: {
//'/.*/_sidebar.md': '/_sidebar.md'
//},
auto2top : true,
autoHeader: true,
coverpage: false,
//ga: '',
darklightTheme: {
siteFont : 'PT Sans',
defaultTheme : 'dark|light',
dark: {
accent: '#b94343',
toogleBackground : '#ffffff',
background: '#091a28',
textColor: '#b4b4b4',
codeTextColor : '#ffffff',
codeBackgroudColor : '#0e2233',
borderColor : '#0d2538',
blockQuoteColour : '#858585',
highlightColor : '#d27778',
sidebarSublink : '#b4b4b4',
codeTypeColor : '#ffffff',
//toogleImage : 'url(null)',
coverBackground : 'linear-gradient(to left bottom, hsl(118, 100%, 85%) 0%,hsl(181, 100%, 85%) 100%)'
},
light: {
accent: '#f08080',
highlightColor : '#d27778'
},
codeFontFamily : 'Roboto Mono, Monaco, courier, monospace'
},
executeScript: false,
externalLinkTarget: '_self',
hideOtherSidebarContent: false,
homepage: 'index.md',
loadNavbar: true,
loadSidebar: true,
//logo: '_media/icon.svg',
maxLevel : 5,
mergeNavbar: true,
name: 'Support FAQ',
notFoundPage: true,
pagination: {
crossChapter: true,
crossChapterText: true
},
plugins: [
function(hook, vm){
var custommarkdown = [
'<style>.markdown-section{margin-top:25px}</style><style>.sidebar-toggle {top:0px;left:0px;height:40px;width:40px}</style><style>#mermaid-svg-0{width:100%;}</style>'
].join('');
hook.beforeEach(function(content) {
// Invoked each time before parsing the Markdown file.
// ...
return content + custommarkdown;
});
//hook.doneEach(function() {
// // Invoked each time after the data is fully loaded, no arguments,
// // ...
// return custommermaid;
//});
hook.beforeEach(function (html) {
if (/githubusercontent\.com/.test(vm.route.file)) {
url = vm.route.file
.replace('raw.githubusercontent.com', 'github.com')
.replace(/\/master/, '/edit/master')
} else if (/jsdelivr\.net/.test(vm.route.file)) {
url = vm.route.file
.replace('cdn.jsdelivr.net/gh', 'github.com')
.replace('@master', '/edit/master')
} else {
url = 'https://github.com/cardano-community/support-faq/edit/master/' + vm.route.file
}
var editHtml = '[:memo: Edit](' + url + ')\n'
return editHtml
+ html
})
}
],
readyTransition: true,
relativePath: false,
requestHeaders: {
'Set-Cookie': 'cross-site-cookie=X-OpenDNS-Session;SameSite=None; Secure'
},
repo: 'https://github.com/cardano-community/support-faq/tree/master',
subMaxLevel: 4,
search: {
depth : 5,
noData : 'No results!',
placeholder: 'Search...'
},
tabs: {
persist : true, // default
sync : true, // default
theme : 'material', // default
tabComments: true, // default
tabHeadings: true // default
},
topMargin: 100
//markdown: {
// renderer: {
// code: function(code, lang) {
// if (lang === "mermaid") {
// return ('<div class="mermaid" align="center">' + mermaid.render('mermaid-svg-0', code) + "</div>");
// }
// return this.origin.code.apply(this, arguments);
// }
// }
//}
}
//const conf = { logLevel:4, startOnLoad: false, securityLevel: 'lose',themeCSS:'.label foreignObject { font-family: Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size: 90%;overflow: visible;}'};
//mermaid.initialize(conf);
</script>
<!--script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script-->
<!--script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script-->
<script src="//cdn.jsdelivr.net/npm/docsify"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-themeable"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@latest"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-json.min.js"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/external-script.min.js"></script>
<script src="//unpkg.com/docsify-remote-markdown/dist/docsify-remote-markdown.min.js"></script>
<!--script src="https://cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script-->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js"></script>
<!--script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script-->
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js" type="text/javascript"></script>
<script>mermaid.initialize({ startOnLoad: false,securityLevel: 'loose',htmlLabels: true,flowchart:{curve:'linear'},theme: "forest" });</script>
</body>
</html>