blob: e6280dbafbd576525b821b8074c94d31e9040240 [file] [log] [blame]
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +02001{{ define "head" }}
2<style type="text/css">
3html, body, div, span, applet, object, iframe,
4h1, h2, h3, h4, h5, h6, p, blockquote, pre,
5a, abbr, acronym, address, big, cite, code,
6del, dfn, em, img, ins, kbd, q, s, samp,
7small, strike, strong, sub, sup, tt, var,
8b, u, i, center,
9dl, dt, dd, ol, ul, li,
10fieldset, form, label, legend,
11table, caption, tbody, tfoot, thead, tr, th, td,
12article, aside, canvas, details, embed,
13figure, figcaption, footer, header, hgroup,
14menu, nav, output, ruby, section, summary,
15time, mark, audio, video {
16 margin: 0;
17 padding: 0;
18 border: 0;
19 font-size: 100%;
20 font: inherit;
21 vertical-align: baseline;
22}
23/* HTML5 display-role reset for older browsers */
24article, aside, details, figcaption, figure,
25footer, header, hgroup, menu, nav, section {
26 display: block;
27}
28body {
29 line-height: 1;
30}
31ol, ul {
32 list-style: none;
33}
34blockquote, q {
35 quotes: none;
36}
37blockquote:before, blockquote:after,
38q:before, q:after {
39 content: '';
40 content: none;
41}
42table {
43 border-collapse: collapse;
44 border-spacing: 0;
45}
46
47body {
48 font-size: 14px;
49 line-height: 1.25em;
50 background-color: #f0f0f0;
51}
52
53.wrapper {
54 display: flex;
55 flex-direction: row;
56 justify-content: center;
57 width: 100%;
58}
59
60.column {
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020061 width: 80em;
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +020062 padding: 1rem 0 1rem 0;
63}
64
65.page {
66 background-color: #fefefe;
67 padding: 0.5rem 2rem 3rem 2rem;
68}
69
70.header {
71 font-size: 1.2em;
72 font-family: Consolas, monospace;
73 margin-top: 1rem;
74 padding: 0.5em 0 0.5em 0;
Serge Bazanskid701c4e2020-08-10 17:59:59 +020075 display: inline-flex;
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +020076}
77
78.header a {
79 text-decoration: none;
80}
81.header a:hover {
82 text-decoration: underline;
83}
84
85.header span.red {
86 color: #b30014;
87}
88
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020089.header span.part {
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020090 color: #666;
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020091 padding-left: 0.2em;
92}
93
94.header span.part a {
95 color: rgb(27, 106, 203);
96}
97.header span.part a:visited {
98 color: rgb(27, 106, 203);
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020099}
100
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200101.footer {
102 font-size: 0.8em;
103 color: #ccc;
104 font-weight: 800;
105 font-family: helvetica, arial, sans-serif;
106 padding: 0.5em 1em 1em;
107 text-align: right;
108}
109
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200110.footer .left {
111 float: left;
112}
113
114.footer .right {
115 float: right;
116}
117
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200118.footer a {
119 color: #bbb;
120}
121
122h1,h2,h3,h4 {
123 font-family: helvetica, arial, sans-serif;
124}
125
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200126.content h1 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200127 font-size: 1.6em;
128 padding: 1em 0 0 0;
129 font-weight: 800;
130}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200131
132.content h2 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200133 font-size: 1.3em;
134 padding: 0.8em 0 0 0;
135 color: #333;
136 font-weight: 800;
137}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200138
139.content h3 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200140 font-size: 1.2em;
141 padding: 0.4em 0 0 0;
142 color: #444;
143}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200144
145.content h4 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200146 font-size: 1.0em;
147 color: #555;
148}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200149
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200150.content strong {
151 font-weight: 600;
152}
153
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200154.content code {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200155 font-family: Consolas, monospace;
156 background-color: #f8f8f8;
157}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200158
159.content pre {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200160 background-color: #f8f8f8;
161 border: 1px solid #d8d8d8;
162 margin: 1em;
163 padding: 0.5em;
164 overflow: auto;
165}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200166
167.content p {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200168 margin-top: 0.8em;
169 line-height: 1.5em;
170}
171
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200172.content ul {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200173 padding-top: 0.5em;
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200174 line-height: 1.5em;
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200175}
176
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200177.content ul li {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200178 padding-left: 1em;
179}
180
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200181.content ul li::before {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200182 content: "•";
183 color: #333;;
184 display: inline-block;
185 width: 1em;
186 margin-left: -1em;
187}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200188
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200189.content img {
190 max-width: 90%;
191 margin: 1em auto 1em auto;
192 display: block;
193}
194
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200195.toc {
196 float: right;
197 padding: 1em 1em 1em 1em;
198 border: 1px solid #ddd;
199 background-color: #f8f8f8;
200 margin: 2em;
201 max-width: 30%;
202}
203
204.toc h1 {
205 font-size: 1.2em;
206 padding-bottom: 0.5em;
207}
208
209.toc a {
210 text-decoration: none;
211}
212
213.toc li {
214 padding-left: 0.5em;
215}
216
217.toc ul {
218 list-style-type: disc;
219 padding-left: 1em;
220}
221
222.toc ul ul {
223 list-style-type: circle;
224}
225
226
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200227</style>
228{{ end }}
229{{ define "body" }}
230<div class="wrapper">
231 <div class="column">
232 <div class="page">
233 <div class="header">
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200234 <span class="red">hackdoc:</span>
Serge Bazanskid701c4e2020-08-10 17:59:59 +0200235 {{ range .PathParts }}
236 {{ if ne .Path "" }}
237 <span class="part"><a href="{{ .Path }}">{{ .Label }}</a></span>
238 {{ else }}
239 <span class="part">{{ .Label }}</span>
240 {{ end }}
241 {{ end }}
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200242 <span class="red" style="margin-left: 1em;">shortcuts:</span> <a href="/">root</a>, <a href="/cluster/doc">cluster docs</a>, <a href="/doc/codelabs">codelabs</a>
Sergiusz Bazanskicc8c69c2020-04-10 21:20:53 +0200243 </div>
q3k4f7cc002020-04-10 20:09:35 +0000244 {{ .Rendered }}
245 </div>
246 <div class="footer">
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200247 <div class="left">
248 View in:
249 {{ range .WebLinks }}
250 <span class="muted">[{{ .Kind }} <a href="{{ .LinkURL }}">{{ .LinkLabel }}</a>]</span>
251 {{ end }}
252 </div>
253 <div class="right">Generated by <a href="{{ .HackdocURL }}/devtools/hackdoc">hackdoc</a>.</div>
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200254 </div>
255 </div>
256</div>
257{{ end }}