blob: a6c1d42882d3ea220e0c0bdec2405f1b90d256d5 [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;
75}
76
77.header a {
78 text-decoration: none;
79}
80.header a:hover {
81 text-decoration: underline;
82}
83
84.header span.red {
85 color: #b30014;
86}
87
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020088.header span.part {
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020089 color: #666;
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020090 padding-left: 0.2em;
91}
92
93.header span.part a {
94 color: rgb(27, 106, 203);
95}
96.header span.part a:visited {
97 color: rgb(27, 106, 203);
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020098}
99
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200100.footer {
101 font-size: 0.8em;
102 color: #ccc;
103 font-weight: 800;
104 font-family: helvetica, arial, sans-serif;
105 padding: 0.5em 1em 1em;
106 text-align: right;
107}
108
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200109.footer .left {
110 float: left;
111}
112
113.footer .right {
114 float: right;
115}
116
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200117.footer a {
118 color: #bbb;
119}
120
121h1,h2,h3,h4 {
122 font-family: helvetica, arial, sans-serif;
123}
124
125h1 {
126 font-size: 1.6em;
127 padding: 1em 0 0 0;
128 font-weight: 800;
129}
130h2 {
131 font-size: 1.3em;
132 padding: 0.8em 0 0 0;
133 color: #333;
134 font-weight: 800;
135}
136h3 {
137 font-size: 1.2em;
138 padding: 0.4em 0 0 0;
139 color: #444;
140}
141h4 {
142 font-size: 1.0em;
143 color: #555;
144}
145code {
146 font-family: Consolas, monospace;
147 background-color: #f8f8f8;
148}
149pre {
150 background-color: #f8f8f8;
151 border: 1px solid #d8d8d8;
152 margin: 1em;
153 padding: 0.5em;
154 overflow: auto;
155}
156p {
157 margin-top: 0.8em;
158 line-height: 1.5em;
159}
160
161ul {
162 padding-top: 0.5em;
163}
164
165ul li {
166 padding-left: 1em;
167}
168
169ul li::before {
170 content: "•";
171 color: #333;;
172 display: inline-block;
173 width: 1em;
174 margin-left: -1em;
175}
176</style>
177{{ end }}
178{{ define "body" }}
179<div class="wrapper">
180 <div class="column">
181 <div class="page">
182 <div class="header">
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200183 <span class="red">hackdoc:</span>
184 {{ range .PathParts }}<span class="part"><a href="{{ .Path }}">{{ .Label }}</a></span>{{ end }}
185 <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 +0200186 </div>
q3k4f7cc002020-04-10 20:09:35 +0000187 {{ .Rendered }}
188 </div>
189 <div class="footer">
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200190 <div class="left">
191 View in:
192 {{ range .WebLinks }}
193 <span class="muted">[{{ .Kind }} <a href="{{ .LinkURL }}">{{ .LinkLabel }}</a>]</span>
194 {{ end }}
195 </div>
196 <div class="right">Generated by <a href="{{ .HackdocURL }}/devtools/hackdoc">hackdoc</a>.</div>
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200197 </div>
198 </div>
199</div>
200{{ end }}