forked from malua/ionic-super-tabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.doctemplate
209 lines (181 loc) · 6.66 KB
/
.doctemplate
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{- .Title }}</title>
{{ if .Description }}<meta name="description" content="{{ .Description }}">{{ end }}
{{ if .BaseURL }}<base href="{{ .BaseURL }}" />{{ end }}
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-tomorrow.min.css" integrity="sha256-xevuwyBEb2ZYh4nDhj0g3Z/rDBnM569hg9Vq6gEw/Sg=" crossorigin="anonymous" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#fafafa">
<style>
h1, h2, h3, h4, h5, h6, p, div, code {
-webkit-font-smoothing: auto;
-moz-osx-font-smoothing: auto;
}
h1 {
font-size: 2rem;
font-weight: 600;
line-height: 3rem;
color: rgba(102, 126, 234, 0.6);
margin-bottom: 2rem;
}
h2 {
font-size: 1.2rem;
line-height: 1.4rem;
text-transform: uppercase;
margin-top: 3rem;
font-weight: 600;
color: rgba(95, 128, 187, 0.8);
}
h4 {
font-size: 1rem;
line-height: 1.2rem;
text-transform: uppercase;
margin-top: 1rem;
font-weight: 600;
color: rgba(63, 93, 150, 0.99);
}
h4 + p {
padding-top: 0.4rem;
}
p {
padding-top: 1rem;
font-size: 1rem;
line-height: 1.4rem;
letter-spacing: 0.07rem;
max-width: 600px;
text-align: justify;
color: rgba(0,0,0,0.87);
}
p code, table code {
background: rgb(45, 45, 45);
color: #ffb5b7;
padding: 2px 8px;
word-break: break-all;
letter-spacing: normal;
display: inline-block;
}
a {
color: #6470dc;
}
a:hover {
color: #4659ff;
}
table {
background: rgba(0,0,0,0.01);
margin: 1rem 0;
width: 100%;
max-width: 100%;
overflow-y: auto;
}
thead {
}
thead tr {
}
thead tr th {
padding: 1rem 0.5rem;
background: rgba(0,0,0,0.03);
color: rgba(0,0,0,0.67);
}
thead tr th:not(:last-child), tbody tr td:not(:last-child) {
border-right: 1px solid rgba(0,0,0,0.15);
}
thead tr, tbody tr:not(:last-child) {
border-bottom: 1px solid rgba(0,0,0,0.15);
}
tbody {
}
tbody tr {
}
tbody tr td {
padding: 0.5rem;
}
#graph, #graph + pre, #dependencies, #depends-on, #depends-on + ul {
display: none;
}
hr {
margin-top: 3rem;
}
#properties + table tbody tr td:nth-child(3) {
width: 40%;
}
#events + table tbody tr td:nth-child(2) {
width: 48%;
}
</style>
</head>
<body>
<nav role="navigation">
<div class="container flex items-center justify-between flex-wrap p-6 mx-auto">
<div class="flex items-center flex-shrink-0 text-indigo-500 mr-6">
<span class="font-semibold text-xl tracking-tight">
{{ .SiteTitle }}
</span>
</div>
<div class="block">
<button id="sidenav-open-button" class="inline lg:hidden flex items-center px-3 py-2 text-indigo-400 hover:text-indigo-500">
<svg class="fill-current h-5 w-5" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
</button>
<button id="sidenav-close-button" class="flex items-center px-3 py-2 text-indigo-400 hover:text-indigo-500 hidden">
<svg class="fill-current w-5 h-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"></path></svg>
</button>
</div>
</div>
</nav>
<div class="container mx-auto">
<div class="flex">
<nav class="w-full lg:w-1/4 p-6 hidden lg:block" id="sidenav" role="navigation">
<ul class="list-reset" role="none">
{{- range $index, $element := .MenuItems }}
{{- if $element.Group }}
<li role="none" class="my-1">
<span class="font-semibold text-gray-400">{{ $element.Title }}</span>
<ul class="list-reset ml-1" role="none">
{{- range $ci, $ce := $element.Items }}
<li role="none">
<a href="{{ $ce.Link }}" role="link" aria-label="{{ $ce.Title }}" class="block p-1 {{ if $ce.Active }}text-indigo-600{{ else }}text-gray-600 hover:text-gray-700{{ end }}">{{ $ce.Title }}</a>
</li>
{{- end }}
</ul>
</li>
{{- else }}
<li role="none" class="my=1">
<a href="{{ $element.Link }}" role="link" aria-label="{{ $element.Title }}" class="block py-1 pr-1 {{ if $element.Active }}text-indigo-600{{ else }}text-gray-600 hover:text-gray-700{{ end }}">{{ $element.Title }}</a>
</li>
{{- end }}
{{- end }}
</ul>
</nav>
<div class="w-full lg:w-3/4 p-6" id="content-container">
{{ .Content }}
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/prism.js" integrity="sha256-hFhFKoZ+mZTEMFJc8FQyuDDHVB1x9v+rJRu3DelyOHQ=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/components/prism-typescript.js" integrity="sha256-pDpItYLMSApStvqbBe51zq9wIgBkVM81OWNH2pqL3mQ=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/components/prism-shell-session.min.js" integrity="sha256-Jy8oX8yb4vOF1XXD4omkL5QRBb1wxSC8A0Ck9En8fa8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/components/prism-bash.js" integrity="sha256-iAZZqWH4eVQeSza3X25jRVetUoFVIWqF/YYVyFJl9R0=" crossorigin="anonymous"></script>
<script>
(function () {
const openButton = document.getElementById('sidenav-open-button');
const closeButton = document.getElementById('sidenav-close-button');
const sidenav = document.getElementById('sidenav');
const container = document.getElementById('content-container');
openButton.addEventListener('click', () => {
sidenav.classList.replace('hidden', 'block');
container.classList.add('hidden');
openButton.classList.add('hidden');
closeButton.classList.remove('hidden');
});
closeButton.addEventListener('click', () => {
sidenav.classList.replace('block', 'hidden');
container.classList.remove('hidden');
openButton.classList.remove('hidden');
closeButton.classList.add('hidden');
});
})();
</script>
</body>
</html>