575ecae224d9d076698112d8da5a393a77f028c3
[pve-docs.git] / asciidoc / pve-html.conf
1 #
2 # html5.conf
3 #
4 # Asciidoc configuration file.
5 # html5 backend.
6 #
7 # modified for Proxmox VE docs
8 # - add thumbnail attribute
9 # - s!./stylesheets!/etc/asciidoc/stylesheets!g
10 # - s!./javascripts!/etc/asciidoc/javascripts!g
11
12 [miscellaneous]
13 outfilesuffix=.html
14
15 [attributes]
16 basebackend=html
17 basebackend-html=
18 basebackend-html5=
19
20 [replacements2]
21 # Line break.
22 (?m)^(.*)\s\+$=\1<br>
23
24 [replacements]
25 ifdef::asciidoc7compatible[]
26 # Superscripts.
27 \^(.+?)\^=<sup>\1</sup>
28 # Subscripts.
29 ~(.+?)~=<sub>\1</sub>
30 endif::asciidoc7compatible[]
31
32 [ruler-blockmacro]
33 <hr>
34
35 [pagebreak-blockmacro]
36 <div style="page-break-after:always"></div>
37
38 [blockdef-pass]
39 asciimath-style=template="asciimathblock",subs=()
40 latexmath-style=template="latexmathblock",subs=()
41
42 [macros]
43 (?u)^(?P<name>audio|video)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
44 # math macros.
45 # Special characters are escaped in HTML math markup.
46 (?su)[\\]?(?P<name>asciimath|latexmath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[specialcharacters]
47 (?u)^(?P<name>asciimath|latexmath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[specialcharacters]
48
49 [asciimath-inlinemacro]
50 `{passtext}`
51
52 [asciimath-blockmacro]
53 <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
54 <div class="content">
55 <div class="title">{title}</div>
56 `{passtext}`
57 </div></div>
58
59 [asciimathblock]
60 <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
61 <div class="content">
62 <div class="title">{title}</div>
63 `|`
64 </div></div>
65
66 [latexmath-inlinemacro]
67 {passtext}
68
69 [latexmath-blockmacro]
70 <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
71 <div class="content">
72 <div class="title">{title}</div>
73 {passtext}
74 </div></div>
75
76 [latexmathblock]
77 <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
78 <div class="content">
79 <div class="title">{title}</div>
80 |
81 </div></div>
82
83 [image-inlinemacro]
84 <span class="image{role? {role}}">
85 <a class="image" href="{link}">
86 {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}>
87 {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}
88 {data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print 'src=\"data:'+mimetypes.guess_type(r'{target}')[0]+';base64,'; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
89 {link#}</a>
90 </span>
91
92 [image-blockmacro]
93 <div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
94 <div class="content">
95 <a class="image" href="{link}">
96 {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}>
97 {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}
98 {data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print 'src=\"data:'+mimetypes.guess_type(r'{target}')[0]+';base64,'; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
99 {link#}</a>
100 </div>
101 <div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
102 </div>
103
104 [audio-blockmacro]
105 <div class="audioblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
106 <div class="title">{caption=}{title}</div>
107 <div class="content">
108 <audio src="{imagesdir=}{imagesdir?/}{target}"{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}>
109 Your browser does not support the audio tag.
110 </audio>
111 </div></div>
112
113 [video-blockmacro]
114 <div class="videoblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
115 <div class="title">{caption=}{title}</div>
116 <div class="content">
117 <video src="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? height="{height}"}{poster? poster="{poster}"}{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}>
118 Your browser does not support the video tag.
119 </video>
120 </div></div>
121
122 [unfloat-blockmacro]
123 <div style="clear:both;"></div>
124
125 [toc-blockmacro]
126 template::[toc]
127
128 [indexterm-inlinemacro]
129 # Index term.
130 {empty}
131
132 [indexterm2-inlinemacro]
133 # Index term.
134 # Single entry index term that is visible in the primary text flow.
135 {1}
136
137 [footnote-inlinemacro]
138 # footnote:[<text>].
139 <span class="footnote"><br>[{0}]<br></span>
140
141 [footnoteref-inlinemacro]
142 # footnoteref:[<id>], create reference to footnote.
143 {2%}<span class="footnoteref"><br><a href="#_footnote_{1}">[{1}]</a><br></span>
144 # footnoteref:[<id>,<text>], create footnote with ID.
145 {2#}<span class="footnote" id="_footnote_{1}"><br>[{2}]<br></span>
146
147 [callout-inlinemacro]
148 ifndef::icons[]
149 <b>&lt;{index}&gt;</b>
150 endif::icons[]
151 ifdef::icons[]
152 ifndef::data-uri[]
153 <img src="{icon={iconsdir}/callouts/{index}.png}" alt="{index}">
154 endif::data-uri[]
155 ifdef::data-uri[]
156 <img alt="{index}" src="data:image/png;base64,
157 {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{index}.png}")}"}">
158 endif::data-uri[]
159 endif::icons[]
160
161 # Comment line macros.
162 [comment-inlinemacro]
163 {showcomments#}<br><span class="comment">{passtext}</span><br>
164
165 [comment-blockmacro]
166 {showcomments#}<p><span class="comment">{passtext}</span></p>
167
168 [literal-inlinemacro]
169 # Inline literal.
170 <span class="monospaced">{passtext}</span>
171
172 # List tags.
173 [listtags-bulleted]
174 list=<div class="ulist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
175 item=<li>|</li>
176 text=<p>|</p>
177
178 [listtags-numbered]
179 # The start attribute is not valid XHTML 1.1 but all browsers support it.
180 list=<div class="olist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol class="{style}"{start? start="{start}"}>|</ol></div>
181 item=<li>|</li>
182 text=<p>|</p>
183
184 [listtags-labeled]
185 list=<div class="dlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
186 entry=
187 label=
188 term=<dt class="hdlist1{strong-option? strong}">|</dt>
189 item=<dd>|</dd>
190 text=<p>|</p>
191
192 [listtags-horizontal]
193 list=<div class="hdlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>{labelwidth?<col width="{labelwidth}%">}{itemwidth?<col width="{itemwidth}%">}|</table></div>
194 label=<td class="hdlist1{strong-option? strong}">|</td>
195 term=|<br>
196 entry=<tr>|</tr>
197 item=<td class="hdlist2">|</td>
198 text=<p style="margin-top: 0;">|</p>
199
200 [listtags-qanda]
201 list=<div class="qlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
202 entry=<li>|</li>
203 label=
204 term=<p><em>|</em></p>
205 item=
206 text=<p>|</p>
207
208 [listtags-callout]
209 ifndef::icons[]
210 list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
211 item=<li>|</li>
212 text=<p>|</p>
213 endif::icons[]
214 ifdef::icons[]
215 list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>|</table></div>
216 ifndef::data-uri[]
217 item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}"></td><td>|</td></tr>
218 endif::data-uri[]
219 ifdef::data-uri[]
220 item=<tr><td><img alt="{listindex}" src="data:image/png;base64, {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{listindex}.png}")}"}"></td><td>|</td></tr>
221 endif::data-uri[]
222 text=|
223 endif::icons[]
224
225 [listtags-glossary]
226 list=<div class="dlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
227 label=
228 entry=
229 term=<dt>|</dt>
230 item=<dd>|</dd>
231 text=<p>|</p>
232
233 [listtags-bibliography]
234 list=<div class="ulist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
235 item=<li>|</li>
236 text=<p>|</p>
237
238 [tags]
239 # Quoted text.
240 emphasis=<em>{1?<span class="{1}">}|{1?</span>}</em>
241 strong=<strong>{1?<span class="{1}">}|{1?</span>}</strong>
242 monospaced=<span class="monospaced{1? {1}}">|</span>
243 singlequoted={lsquo}{1?<span class="{1}">}|{1?</span>}{rsquo}
244 doublequoted={ldquo}{1?<span class="{1}">}|{1?</span>}{rdquo}
245 unquoted={1?<span class="{1}">}|{1?</span>}
246 superscript=<sup>{1?<span class="{1}">}|{1?</span>}</sup>
247 subscript=<sub>{1?<span class="{1}">}|{1?</span>}</sub>
248
249 ifdef::deprecated-quotes[]
250 # Override with deprecated quote attributes.
251 emphasis={role?<span class="{role}">}<em{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</em>{role?</span>}
252 strong={role?<span class="{role}">}<strong{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</strong>{role?</span>}
253 monospaced=<span class="monospaced{role? {role}}"{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</span>
254 singlequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8216;|{amp}#8217;{1,2,3?</span>}{role?</span>}
255 doublequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8220;|{amp}#8221;{1,2,3?</span>}{role?</span>}
256 unquoted={role?<span class="{role}">}{1,2,3?<span style="{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}">}|{1,2,3?</span>}{role?</span>}
257 superscript={role?<span class="{role}">}<sup{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sup>{role?</span>}
258 subscript={role?<span class="{role}">}<sub{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sub>{role?</span>}
259 endif::deprecated-quotes[]
260
261 # Inline macros
262 [http-inlinemacro]
263 <a href="{name}:{target}">{0={name}:{target}}</a>
264 [https-inlinemacro]
265 <a href="{name}:{target}">{0={name}:{target}}</a>
266 [ftp-inlinemacro]
267 <a href="{name}:{target}">{0={name}:{target}}</a>
268 [file-inlinemacro]
269 <a href="{name}:{target}">{0={name}:{target}}</a>
270 [irc-inlinemacro]
271 <a href="{name}:{target}">{0={name}:{target}}</a>
272 [mailto-inlinemacro]
273 <a href="mailto:{target}">{0={target}}</a>
274 [link-inlinemacro]
275 <a href="{target}">{0={target}}</a>
276 [callto-inlinemacro]
277 <a href="{name}:{target}">{0={target}}</a>
278 # anchor:id[text]
279 [anchor-inlinemacro]
280 <a id="{target}"></a>
281 # [[id,text]]
282 [anchor2-inlinemacro]
283 <a id="{1}"></a>
284 # [[[id]]]
285 [anchor3-inlinemacro]
286 <a id="{1}"></a>[{1}]
287 # xref:id[text]
288 [xref-inlinemacro]
289 <a href="#{target}">{0=[{target}]}</a>
290 # <<id,text>>
291 [xref2-inlinemacro]
292 <a href="#{1}">{2=[{1}]}</a>
293
294 # Special word substitution.
295 [emphasizedwords]
296 <em>{words}</em>
297 [monospacedwords]
298 <span class="monospaced">{words}</span>
299 [strongwords]
300 <strong>{words}</strong>
301
302 # Paragraph substitution.
303 [paragraph]
304 <div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
305 {thumbnail#}<a class="image" href="images/screenshot/{thumbnail}">
306 {thumbnail#}<img src="images/screenshot/{thumbnail}" alt="{alt={thumbnail}}" width=250 style="float:{float=right};">
307 {thumbnail#}</a>
308 {title?<div class="title">{title}</div>}<p>
309 |
310 </p></div>
311
312 [admonitionparagraph]
313 template::[admonitionblock]
314
315 # Delimited blocks.
316 [listingblock]
317 <div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
318 <div class="title">{caption=}{title}</div>
319 <div class="content monospaced">
320 <pre>
321 |
322 </pre>
323 </div></div>
324
325 [literalblock]
326 <div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
327 <div class="title">{title}</div>
328 <div class="content monospaced">
329 <pre>
330 |
331 </pre>
332 </div></div>
333
334 [sidebarblock]
335 <div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
336 <div class="content">
337 <div class="title">{title}</div>
338 |
339 </div></div>
340
341 [openblock]
342 <div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
343 <div class="title">{title}</div>
344 <div class="content">
345 |
346 </div></div>
347
348 [partintroblock]
349 template::[openblock]
350
351 [abstractblock]
352 template::[quoteblock]
353
354 [quoteblock]
355 <div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
356 <div class="title">{title}</div>
357 <div class="content">
358 |
359 </div>
360 <div class="attribution">
361 <em>{citetitle}</em>{attribution?<br>}
362 &#8212; {attribution}
363 </div></div>
364
365 [verseblock]
366 <div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
367 <div class="title">{title}</div>
368 <pre class="content">
369 |
370 </pre>
371 <div class="attribution">
372 <em>{citetitle}</em>{attribution?<br>}
373 &#8212; {attribution}
374 </div></div>
375
376 [exampleblock]
377 <div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
378 <div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
379 <div class="content">
380 |
381 </div></div>
382
383 [admonitionblock]
384 <div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
385 <table><tr>
386 <td class="icon">
387 {data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}">
388 {data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
389 {data-uri#}{icons#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}">
390 {icons%}<div class="title">{caption}</div>
391 </td>
392 <td class="content">
393 <div class="title">{title}</div>
394 |
395 </td>
396 </tr></table>
397 </div>
398
399 # Tables.
400 [tabletags-default]
401 colspec=<col{autowidth-option! style="width:{colpcwidth}%;"}>
402 bodyrow=<tr>|</tr>
403 headdata=<th class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</th>
404 bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</td>
405 paragraph=<p class="tableblock">|</p>
406
407 [tabletags-header]
408 paragraph=<p class="tableblock header">|</p>
409
410 [tabletags-emphasis]
411 paragraph=<p class="tableblock"><em>|</em></p>
412
413 [tabletags-strong]
414 paragraph=<p class="tableblock"><strong>|</strong></p>
415
416 [tabletags-monospaced]
417 paragraph=<p class="tableblock monospaced">|</p>
418
419 [tabletags-verse]
420 bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="verse">|</div></td>
421 paragraph=
422
423 [tabletags-literal]
424 bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="literal monospaced"><pre>|</pre></div></td>
425 paragraph=
426
427 [tabletags-asciidoc]
428 bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div>|</div></td>
429 paragraph=
430
431 [table]
432 <table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
433 style="
434 margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};
435 float:{float};
436 {autowidth-option%}width:{tablepcwidth}%;
437 {autowidth-option#}{width#style=width:{tablepcwidth}%;}
438 ">
439 <caption class="title">{caption={table-caption} {counter:table-number}. }{title}</caption>
440 {colspecs}
441 {headrows#}<thead>
442 {headrows}
443 {headrows#}</thead>
444 {footrows#}<tfoot>
445 {footrows}
446 {footrows#}</tfoot>
447 <tbody>
448 {bodyrows}
449 </tbody>
450 </table>
451
452 #--------------------------------------------------------------------
453 # Deprecated old table definitions.
454 #
455
456 [miscellaneous]
457 # Screen width in pixels.
458 pagewidth=800
459 pageunits=px
460
461 [old_tabledef-default]
462 template=old_table
463 colspec=<col style="width:{colwidth}{pageunits};" />
464 bodyrow=<tr>|</tr>
465 headdata=<th class="tableblock halign-{colalign=left}">|</th>
466 footdata=<td class="tableblock halign-{colalign=left}">|</td>
467 bodydata=<td class="tableblock halign-{colalign=left}">|</td>
468
469 [old_table]
470 <table class="tableblock frame-{frame=all} grid-{grid=all}"{id? id="{id}"}>
471 <caption class="title">{caption={table-caption}}{title}</caption>
472 {colspecs}
473 {headrows#}<thead>
474 {headrows}
475 {headrows#}</thead>
476 {footrows#}<tfoot>
477 {footrows}
478 {footrows#}</tfoot>
479 <tbody style="vertical-align:top;">
480 {bodyrows}
481 </tbody>
482 </table>
483
484 # End of deprecated old table definitions.
485 #--------------------------------------------------------------------
486
487 [floatingtitle]
488 <h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}{id? id="{id}"} class="float">{title}</h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}>
489
490 [preamble]
491 # Untitled elements between header and first section title.
492 <div id="preamble">
493 <div class="sectionbody">
494 |
495 </div>
496 </div>
497
498 # Document sections.
499 [sect0]
500 <h1{id? id="{id}"}>{title}</h1>
501 |
502
503 [sect1]
504 <div class="sect1{style? {style}}{role? {role}}">
505 <h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2>
506 <div class="sectionbody">
507 |
508 </div>
509 </div>
510
511 [sect2]
512 <div class="sect2{style? {style}}{role? {role}}">
513 <h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3>
514 |
515 </div>
516
517 [sect3]
518 <div class="sect3{style? {style}}{role? {role}}">
519 <h4{id? id="{id}"}>{numbered?{sectnum} }{title}</h4>
520 |
521 </div>
522
523 [sect4]
524 <div class="sect4{style? {style}}{role? {role}}">
525 <h5{id? id="{id}"}>{title}</h5>
526 |
527 </div>
528
529 [appendix]
530 <div class="sect1{style? {style}}{role? {role}}">
531 <h2{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2>
532 <div class="sectionbody">
533 |
534 </div>
535 </div>
536
537 [toc]
538 <div id="toc">
539   <div id="toctitle">{toc-title}</div>
540   <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
541 </div>
542
543 [header]
544 <!DOCTYPE html>
545 <html lang="{lang=en}">
546 <head>
547 <meta http-equiv="Content-Type" content="text/html; charset={encoding}">
548 <meta name="generator" content="AsciiDoc {asciidoc-version}">
549 <meta name="description" content="{description}">
550 <meta name="keywords" content="{keywords}">
551 <title>{title}</title>
552 {title%}<title>{doctitle=}</title>
553 ifdef::linkcss[]
554 <link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
555 ifeval::["{source-highlighter}"=="pygments"]
556 <link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
557 endif::[]
558
559 # DEPRECATED: 'pygments' attribute.
560 ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
561
562 ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
563 <link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
564 endif::linkcss[]
565 ifndef::linkcss[]
566 <style type="text/css">
567 include1::{theme%}{stylesdir=/etc/asciidoc/stylesheets}/asciidoc.css[]
568 include1::{themedir}/{theme}.css[]
569 ifeval::["{source-highlighter}"=="pygments"]
570 include1::{stylesdir=/etc/asciidoc/stylesheets}/pygments.css[]
571 endif::[]
572
573 # DEPRECATED: 'pygments' attribute.
574 ifdef::pygments[]
575 include1::{stylesdir=/etc/asciidoc/stylesheets}/pygments.css[]
576 endif::pygments[]
577
578 ifdef::toc2[]
579 include1::{stylesdir=/etc/asciidoc/stylesheets}/toc2.css[]
580 endif::toc2[]
581 include1::{stylesheet}[]
582 </style>
583 endif::linkcss[]
584 ifndef::disable-javascript[]
585 ifdef::linkcss[]
586 <script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
587 <script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
588 <script type="text/javascript">
589 #TODO: Escape not necessary in HTML5?
590 # Escape as CDATA to pass validators.
591 /*<![CDATA[*/
592 asciidoc.install({toc,toc2?{toclevels}});
593 /*]]>*/
594 </script>
595 endif::linkcss[]
596 ifndef::linkcss[]
597 <script type="text/javascript">
598 # Escape as CDATA to pass validators.
599 /*<![CDATA[*/
600 include1::{scriptsdir=/etc/asciidoc/javascripts}/asciidoc.js[]
601 include1::{themedir}/{theme}.js[warnings=False]
602 asciidoc.install({toc,toc2?{toclevels}});
603 /*]]>*/
604 </script>
605 endif::linkcss[]
606 endif::disable-javascript[]
607 ifdef::asciimath[]
608 ifdef::linkcss[]
609 <script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
610 endif::linkcss[]
611 ifndef::linkcss[]
612 <script type="text/javascript">
613 # Escape as CDATA to pass validators.
614 /*<![CDATA[*/
615 include1::{scriptsdir=/etc/asciidoc/javascripts}/ASCIIMathML.js[]
616 /*]]>*/
617 </script>
618 endif::linkcss[]
619 endif::asciimath[]
620 ifdef::latexmath[]
621 ifdef::linkcss[]
622 <script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
623 endif::linkcss[]
624 ifndef::linkcss[]
625 <script type="text/javascript">
626 # Escape as CDATA to pass validators.
627 /*<![CDATA[*/
628 include1::{scriptsdir=/etc/asciidoc/javascripts}/LaTeXMathML.js[]
629 /*]]>*/
630 </script>
631 endif::linkcss[]
632 endif::latexmath[]
633 {docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
634 {docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
635 template::[docinfo]
636 </head>
637 <body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
638 # Article, book header.
639 ifndef::doctype-manpage[]
640 <div id="header">
641 ifndef::notitle[<h1>{doctitle}</h1>]
642 ifdef::doctitle[]
643 <span id="author">{author}</span><br>
644 <span id="email" class="monospaced">&lt;<a href="mailto:{email}">{email}</a>&gt;</span><br>
645 <span id="revnumber">version {revnumber}{revdate?,}</span>
646 <span id="revdate">{revdate}</span>
647 <br><span id="revremark">{revremark}</span>
648 endif::doctitle[]
649 {toc,toc2#}{toc-placement$auto:}{template:toc}
650 </div>
651 endif::doctype-manpage[]
652 # Man page header.
653 ifdef::doctype-manpage[]
654 <div id="header">
655 <h1>
656 {doctitle} Manual Page
657 </h1>
658 {toc,toc2#}{toc-placement$auto:}{template:toc}
659 <h2>{manname-title}</h2>
660 <div class="sectionbody">
661 <p>{manname} -
662    {manpurpose}
663 </p>
664 </div>
665 </div>
666 endif::doctype-manpage[]
667 <div id="content">
668
669 [footer]
670 </div>
671 {disable-javascript%<div id="footnotes"><hr></div>}
672 <div id="footer">
673 # Removing footer date and version if footer-style set to none
674 ifeval::["{footer-style=default}"!="none"]
675 <div id="footer-text">
676 template::[footer-text]
677 </div>
678 endif::[]
679 ifdef::badges[]
680 <div id="footer-badges">
681 ifndef::icons[]
682 Valid <a href="http://validator.w3.org/check?uri=referer">HTML5</a>
683 and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
684 endif::icons[]
685 ifdef::icons[]
686 <a href="http://validator.w3.org/check?uri=referer">
687   <img src="http://www.w3.org/html/logo/badge/html5-badge-h-solo.png"
688        width="30" alt="HTML5 Powered" title="HTML5 Powered">
689 </a>
690 <a href="http://jigsaw.w3.org/css-validator/check/referer">
691   <img style="border:0;width:88px;height:31px"
692     src="http://www.w3.org/Icons/valid-css"
693     alt="Valid CSS!">
694 </a>
695 endif::icons[]
696 </div>
697 endif::badges[]
698 </div>
699 </body>
700 </html>
701
702 [footer-date]
703 # Default footer date is document modification time
704 ifeval::["{footer-style=default}"!="revdate"]
705  {docdate} {doctime}
706 endif::[]
707 # If set to "revdate", it'll be set to the revision date
708 ifeval::["{footer-style=default}"=="revdate"]
709  {revdate}
710 endif::[]
711
712 ifdef::doctype-manpage[]
713 [synopsis]
714 template::[sect1]
715 endif::doctype-manpage[]
716