]> git.proxmox.com Git - pmg-docs.git/blame - asciidoc/pmg-html.conf
conf: add support for a dark mode in the documentation
[pmg-docs.git] / asciidoc / pmg-html.conf
CommitLineData
410dc2c9
DM
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]
13outfilesuffix=.html
14
15[attributes]
16basebackend=html
17basebackend-html=
18basebackend-html5=
19
20[replacements2]
21# Line break.
22(?m)^(.*)\s\+$=\1<br>
23
24[replacements]
25ifdef::asciidoc7compatible[]
26# Superscripts.
27\^(.+?)\^=<sup>\1</sup>
28# Subscripts.
29~(.+?)~=<sub>\1</sub>
30endif::asciidoc7compatible[]
31
32[ruler-blockmacro]
33<hr>
34
35[pagebreak-blockmacro]
36<div style="page-break-after:always"></div>
37
38[blockdef-pass]
39asciimath-style=template="asciimathblock",subs=()
e97e08c3 40latexmath-style=template="latexmathblock",subs=(),posattrs=(),filter="unwraplatex.py"
410dc2c9
DM
41
42[macros]
e97e08c3 43^(?P<name>audio|video)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
410dc2c9
DM
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}"}
e97e08c3 88{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
410dc2c9
DM
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}"}
e97e08c3 98{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
410dc2c9
DM
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}>
109Your 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}>
118Your 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]
126template::[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]
148ifndef::icons[]
149<b>&lt;{index}&gt;</b>
150endif::icons[]
151ifdef::icons[]
152ifndef::data-uri[]
153<img src="{icon={iconsdir}/callouts/{index}.png}" alt="{index}">
154endif::data-uri[]
155ifdef::data-uri[]
156<img alt="{index}" src="data:image/png;base64,
e97e08c3 157{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{index}.png}")}"}">
410dc2c9
DM
158endif::data-uri[]
159endif::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]
174list=<div class="ulist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
175item=<li>|</li>
176text=<p>|</p>
177
178[listtags-numbered]
179# The start attribute is not valid XHTML 1.1 but all browsers support it.
180list=<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>
181item=<li>|</li>
182text=<p>|</p>
183
184[listtags-labeled]
185list=<div class="dlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
186entry=
187label=
188term=<dt class="hdlist1{strong-option? strong}">|</dt>
189item=<dd>|</dd>
190text=<p>|</p>
191
192[listtags-horizontal]
193list=<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>
194label=<td class="hdlist1{strong-option? strong}">|</td>
195term=|<br>
196entry=<tr>|</tr>
197item=<td class="hdlist2">|</td>
198text=<p style="margin-top: 0;">|</p>
199
200[listtags-qanda]
201list=<div class="qlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
202entry=<li>|</li>
203label=
204term=<p><em>|</em></p>
205item=
206text=<p>|</p>
207
208[listtags-callout]
209ifndef::icons[]
210list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
211item=<li>|</li>
212text=<p>|</p>
213endif::icons[]
214ifdef::icons[]
215list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>|</table></div>
216ifndef::data-uri[]
217item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}"></td><td>|</td></tr>
218endif::data-uri[]
219ifdef::data-uri[]
e97e08c3 220item=<tr><td><img alt="{listindex}" src="data:image/png;base64, {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{listindex}.png}")}"}"></td><td>|</td></tr>
410dc2c9
DM
221endif::data-uri[]
222text=|
223endif::icons[]
224
225[listtags-glossary]
226list=<div class="dlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
227label=
228entry=
229term=<dt>|</dt>
230item=<dd>|</dd>
231text=<p>|</p>
232
233[listtags-bibliography]
234list=<div class="ulist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div>
235item=<li>|</li>
236text=<p>|</p>
237
238[tags]
239# Quoted text.
240emphasis=<em>{1?<span class="{1}">}|{1?</span>}</em>
241strong=<strong>{1?<span class="{1}">}|{1?</span>}</strong>
242monospaced=<span class="monospaced{1? {1}}">|</span>
243singlequoted={lsquo}{1?<span class="{1}">}|{1?</span>}{rsquo}
244doublequoted={ldquo}{1?<span class="{1}">}|{1?</span>}{rdquo}
245unquoted={1?<span class="{1}">}|{1?</span>}
246superscript=<sup>{1?<span class="{1}">}|{1?</span>}</sup>
247subscript=<sub>{1?<span class="{1}">}|{1?</span>}</sub>
248
249ifdef::deprecated-quotes[]
250# Override with deprecated quote attributes.
251emphasis={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>}
252strong={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>}
253monospaced=<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>
254singlequoted={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>}
255doublequoted={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>}
256unquoted={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>}
257superscript={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>}
258subscript={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>}
259endif::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}">
d108f537
TL
306{thumbnail#}<img src="images/screenshot/{thumbnail}" alt="{alt={thumbnail}}"
307{thumbnail#}{width#}width="{width}"
308{thumbnail#}{big#}{width%}width="800"
309{thumbnail#}{big%}{width%}width="250"
410dc2c9
DM
310{thumbnail#}{float@left: style="padding\: 0 10px 0 0;float\:left;"}
311{thumbnail#}{float@right: style="padding\: 0 0 0 10px;float\:right;"}
d108f537 312{thumbnail#}{big%}{float%} style="padding: 0 0 0 10px;float:right;"
410dc2c9
DM
313{thumbnail#}></a>
314{title?<div class="title">{title}</div>}<p>
315|
316</p></div>
317
318[admonitionparagraph]
319template::[admonitionblock]
320
321# Delimited blocks.
322[listingblock]
323<div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
324<div class="title">{caption=}{title}</div>
325<div class="content monospaced">
326<pre>
327|
328</pre>
329</div></div>
330
331[literalblock]
332<div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
333<div class="title">{title}</div>
334<div class="content monospaced">
335<pre>
336|
337</pre>
338</div></div>
339
340[sidebarblock]
341<div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
342<div class="content">
343<div class="title">{title}</div>
344|
345</div></div>
346
347[openblock]
348<div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
349<div class="title">{title}</div>
350<div class="content">
351|
352</div></div>
353
354[partintroblock]
355template::[openblock]
356
357[abstractblock]
358template::[quoteblock]
359
360[quoteblock]
361<div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
362<div class="title">{title}</div>
363<div class="content">
364|
365</div>
366<div class="attribution">
367<em>{citetitle}</em>{attribution?<br>}
368&#8212; {attribution}
369</div></div>
370
371[verseblock]
372<div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
373<div class="title">{title}</div>
374<pre class="content">
375|
376</pre>
377<div class="attribution">
378<em>{citetitle}</em>{attribution?<br>}
379&#8212; {attribution}
380</div></div>
381
382[exampleblock]
383<div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
384<div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
385<div class="content">
386|
387</div></div>
388
389[admonitionblock]
390<div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
391<table><tr>
392<td class="icon">
393{data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}">
394{data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
e97e08c3 395{data-uri#}{icons#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}">
410dc2c9
DM
396{icons%}<div class="title">{caption}</div>
397</td>
398<td class="content">
399<div class="title">{title}</div>
400|
401</td>
402</tr></table>
403</div>
404
405# Tables.
406[tabletags-default]
407colspec=<col{autowidth-option! style="width:{colpcwidth}%;"}>
408bodyrow=<tr>|</tr>
409headdata=<th class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</th>
410bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</td>
411paragraph=<p class="tableblock">|</p>
412
413[tabletags-header]
414paragraph=<p class="tableblock header">|</p>
415
416[tabletags-emphasis]
417paragraph=<p class="tableblock"><em>|</em></p>
418
419[tabletags-strong]
420paragraph=<p class="tableblock"><strong>|</strong></p>
421
422[tabletags-monospaced]
423paragraph=<p class="tableblock monospaced">|</p>
424
425[tabletags-verse]
426bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="verse">|</div></td>
427paragraph=
428
429[tabletags-literal]
430bodydata=<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>
431paragraph=
432
433[tabletags-asciidoc]
434bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div>|</div></td>
435paragraph=
436
437[table]
438<table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
439style="
440margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};
441float:{float};
442{autowidth-option%}width:{tablepcwidth}%;
443{autowidth-option#}{width#style=width:{tablepcwidth}%;}
444">
445<caption class="title">{caption={table-caption} {counter:table-number}. }{title}</caption>
446{colspecs}
447{headrows#}<thead>
448{headrows}
449{headrows#}</thead>
450{footrows#}<tfoot>
451{footrows}
452{footrows#}</tfoot>
453<tbody>
454{bodyrows}
455</tbody>
456</table>
457
458#--------------------------------------------------------------------
459# Deprecated old table definitions.
460#
461
462[miscellaneous]
463# Screen width in pixels.
464pagewidth=800
465pageunits=px
466
467[old_tabledef-default]
468template=old_table
469colspec=<col style="width:{colwidth}{pageunits};" />
470bodyrow=<tr>|</tr>
471headdata=<th class="tableblock halign-{colalign=left}">|</th>
472footdata=<td class="tableblock halign-{colalign=left}">|</td>
473bodydata=<td class="tableblock halign-{colalign=left}">|</td>
474
475[old_table]
476<table class="tableblock frame-{frame=all} grid-{grid=all}"{id? id="{id}"}>
477<caption class="title">{caption={table-caption}}{title}</caption>
478{colspecs}
479{headrows#}<thead>
480{headrows}
481{headrows#}</thead>
482{footrows#}<tfoot>
483{footrows}
484{footrows#}</tfoot>
485<tbody style="vertical-align:top;">
486{bodyrows}
487</tbody>
488</table>
489
490# End of deprecated old table definitions.
491#--------------------------------------------------------------------
492
493[floatingtitle]
494<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}>
495
496[preamble]
497# Untitled elements between header and first section title.
498<div id="preamble">
499<div class="sectionbody">
500|
501</div>
502</div>
503
504# Document sections.
505[sect0]
506<h1{id? id="{id}"}>{title}</h1>
507|
508
509[sect1]
510<div class="sect1{style? {style}}{role? {role}}">
511<h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2>
512<div class="sectionbody">
513|
514</div>
515</div>
516
517[sect2]
518<div class="sect2{style? {style}}{role? {role}}">
519<h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3>
520|
521</div>
522
523[sect3]
524<div class="sect3{style? {style}}{role? {role}}">
525<h4{id? id="{id}"}>{numbered?{sectnum} }{title}</h4>
526|
527</div>
528
529[sect4]
530<div class="sect4{style? {style}}{role? {role}}">
531<h5{id? id="{id}"}>{title}</h5>
532|
533</div>
534
535[appendix]
536<div class="sect1{style? {style}}{role? {role}}">
537<h2{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2>
538<div class="sectionbody">
539|
540</div>
541</div>
542
543[toc]
544<div id="toc">
ce41b84c 545 <a href="index.html" style="font-size: 0.8em;">↩Index</a>
410dc2c9
DM
546 <div id="toctitle">{toc-title}</div>
547 <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
548</div>
549
550[header]
551<!DOCTYPE html>
552<html lang="{lang=en}">
553<head>
554<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
555<meta name="generator" content="AsciiDoc {asciidoc-version}">
556<meta name="description" content="{description}">
557<meta name="keywords" content="{keywords}">
558<title>{title}</title>
559{title%}<title>{doctitle=}</title>
560ifdef::linkcss[]
561<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
562ifeval::["{source-highlighter}"=="pygments"]
563<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
564endif::[]
565
566# DEPRECATED: 'pygments' attribute.
567ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
568
569ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
570<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
571endif::linkcss[]
572ifndef::linkcss[]
573<style type="text/css">
574include1::{theme%}{stylesdir=/etc/asciidoc/stylesheets}/asciidoc.css[]
575include1::{themedir}/{theme}.css[]
576ifeval::["{source-highlighter}"=="pygments"]
577include1::{stylesdir=/etc/asciidoc/stylesheets}/pygments.css[]
578endif::[]
579
580# DEPRECATED: 'pygments' attribute.
581ifdef::pygments[]
582include1::{stylesdir=/etc/asciidoc/stylesheets}/pygments.css[]
583endif::pygments[]
584
585ifdef::toc2[]
586include1::{stylesdir=/etc/asciidoc/stylesheets}/toc2.css[]
587endif::toc2[]
588include1::{stylesheet}[]
589</style>
590endif::linkcss[]
509eaa92
TL
591
592ifdef::toc2[]
593<style type="text/css">
594div #toc {
595 width: 19em;
596 font-family: sans;
597 border-right: 3px solid gainsboro;
598}
599.book, .article {
600 margin-left: 22em
601}
602div #toc a:link, div #toc a:visited {
603 color: black;
604 text-decoration: none;
605}
606div #toc a:hover {
607 text-decoration: underline;
608}
609div .toclevel1 {
610 font-size: 1.1em;
611 margin-bottom: 0.3em;
612}
613
614.monospaced, code, pre {
615 overflow-wrap: break-word;
616}
617img {
618 max-width: 100%;
619}
620
621@media only screen and (min-width: 85em) {
622div #toc {
623 width: 22em
624}
625.book, .article {
626 margin-left: 25em
627}
628div .toclevel1 {
629 font-size: 1.2em;
630}
631}
632</style>
633endif::toc2[]
634
5feac0e6
SS
635<style type="text/css">
636include1::{stylesdir=.}/pmg-docs.css[]
637</style>
638
410dc2c9
DM
639ifndef::disable-javascript[]
640ifdef::linkcss[]
641<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
642<script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
643<script type="text/javascript">
644#TODO: Escape not necessary in HTML5?
645# Escape as CDATA to pass validators.
646/*<![CDATA[*/
647asciidoc.install({toc,toc2?{toclevels}});
648/*]]>*/
649</script>
650endif::linkcss[]
651ifndef::linkcss[]
652<script type="text/javascript">
653# Escape as CDATA to pass validators.
654/*<![CDATA[*/
655include1::{scriptsdir=/etc/asciidoc/javascripts}/asciidoc.js[]
656include1::{themedir}/{theme}.js[warnings=False]
657asciidoc.install({toc,toc2?{toclevels}});
658/*]]>*/
659</script>
660endif::linkcss[]
661endif::disable-javascript[]
662ifdef::asciimath[]
663ifdef::linkcss[]
664<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
665endif::linkcss[]
666ifndef::linkcss[]
667<script type="text/javascript">
668# Escape as CDATA to pass validators.
669/*<![CDATA[*/
670include1::{scriptsdir=/etc/asciidoc/javascripts}/ASCIIMathML.js[]
671/*]]>*/
672</script>
673endif::linkcss[]
674endif::asciimath[]
675ifdef::latexmath[]
676ifdef::linkcss[]
677<script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
678endif::linkcss[]
679ifndef::linkcss[]
680<script type="text/javascript">
681# Escape as CDATA to pass validators.
682/*<![CDATA[*/
683include1::{scriptsdir=/etc/asciidoc/javascripts}/LaTeXMathML.js[]
684/*]]>*/
685</script>
686endif::linkcss[]
687endif::latexmath[]
688{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
689{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
690template::[docinfo]
691</head>
692<body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
693# Article, book header.
694ifndef::doctype-manpage[]
695<div id="header">
696ifndef::notitle[<h1>{doctitle}</h1>]
697ifdef::doctitle[]
698<span id="author">{author}</span><br>
699<span id="email" class="monospaced">&lt;<a href="mailto:{email}">{email}</a>&gt;</span><br>
700<span id="revnumber">version {revnumber}{revdate?,}</span>
701<span id="revdate">{revdate}</span>
702<br><span id="revremark">{revremark}</span>
703endif::doctitle[]
704{toc,toc2#}{toc-placement$auto:}{template:toc}
705</div>
706endif::doctype-manpage[]
707# Man page header.
708ifdef::doctype-manpage[]
709<div id="header">
710<h1>
711{doctitle} Manual Page
712</h1>
713{toc,toc2#}{toc-placement$auto:}{template:toc}
714<h2>{manname-title}</h2>
715<div class="sectionbody">
716<p>{manname} -
717 {manpurpose}
718</p>
719</div>
720</div>
721endif::doctype-manpage[]
722<div id="content">
723
724[footer]
725</div>
726{disable-javascript%<div id="footnotes"><hr></div>}
727<div id="footer">
728# Removing footer date and version if footer-style set to none
729ifeval::["{footer-style=default}"!="none"]
730<div id="footer-text">
731template::[footer-text]
732</div>
733endif::[]
734ifdef::badges[]
735<div id="footer-badges">
736ifndef::icons[]
737Valid <a href="http://validator.w3.org/check?uri=referer">HTML5</a>
738and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
739endif::icons[]
740ifdef::icons[]
741<a href="http://validator.w3.org/check?uri=referer">
742 <img src="http://www.w3.org/html/logo/badge/html5-badge-h-solo.png"
743 width="30" alt="HTML5 Powered" title="HTML5 Powered">
744</a>
745<a href="http://jigsaw.w3.org/css-validator/check/referer">
746 <img style="border:0;width:88px;height:31px"
747 src="http://www.w3.org/Icons/valid-css"
748 alt="Valid CSS!">
749</a>
750endif::icons[]
751</div>
752endif::badges[]
753</div>
754</body>
755</html>
756
757[footer-date]
758# Default footer date is document modification time
759ifeval::["{footer-style=default}"!="revdate"]
760 {docdate} {doctime}
761endif::[]
762# If set to "revdate", it'll be set to the revision date
763ifeval::["{footer-style=default}"=="revdate"]
764 {revdate}
765endif::[]
766
767ifdef::doctype-manpage[]
768[synopsis]
769template::[sect1]
770endif::doctype-manpage[]
771