]> git.proxmox.com Git - pve-docs.git/blame - asciidoc/pve-html.conf
conf: add support for a dark mode in the documentation
[pve-docs.git] / asciidoc / pve-html.conf
CommitLineData
ae0ad291
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=()
cf7a2acc 40latexmath-style=template="latexmathblock",subs=(),posattrs=(),filter="unwraplatex.py"
ae0ad291
DM
41
42[macros]
cf7a2acc 43^(?P<name>audio|video)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
ae0ad291
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}"}
cf7a2acc 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}")}"}">
ae0ad291
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}"}
cf7a2acc 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}")}"}">
ae0ad291
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,
cf7a2acc 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}")}"}">
ae0ad291
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[]
cf7a2acc 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>
ae0ad291
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}"}>
1ff5e4e8
DM
305{thumbnail#}<a class="image" href="images/{thumbnail}">
306{thumbnail#}<img src="images/{thumbnail}" alt="{alt={thumbnail}}" width=250
b179764d
DM
307{thumbnail#}{float@left: style="padding\: 0 10px 0 0;float\:left;"}
308{thumbnail#}{float@right: style="padding\: 0 0 0 10px;float\:right;"}
309{thumbnail#}{float%} style="padding: 0 0 0 10px;float:right;"
310{thumbnail#}></a>
ae0ad291
DM
311{title?<div class="title">{title}</div>}<p>
312|
313</p></div>
314
315[admonitionparagraph]
316template::[admonitionblock]
317
318# Delimited blocks.
319[listingblock]
320<div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
321<div class="title">{caption=}{title}</div>
322<div class="content monospaced">
323<pre>
324|
325</pre>
326</div></div>
327
328[literalblock]
329<div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
330<div class="title">{title}</div>
331<div class="content monospaced">
332<pre>
333|
334</pre>
335</div></div>
336
337[sidebarblock]
338<div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
339<div class="content">
340<div class="title">{title}</div>
341|
342</div></div>
343
344[openblock]
345<div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
346<div class="title">{title}</div>
347<div class="content">
348|
349</div></div>
350
351[partintroblock]
352template::[openblock]
353
354[abstractblock]
355template::[quoteblock]
356
357[quoteblock]
358<div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
359<div class="title">{title}</div>
360<div class="content">
361|
362</div>
363<div class="attribution">
364<em>{citetitle}</em>{attribution?<br>}
365&#8212; {attribution}
366</div></div>
367
368[verseblock]
369<div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
370<div class="title">{title}</div>
371<pre class="content">
372|
373</pre>
374<div class="attribution">
375<em>{citetitle}</em>{attribution?<br>}
376&#8212; {attribution}
377</div></div>
378
379[exampleblock]
380<div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
381<div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
382<div class="content">
383|
384</div></div>
385
386[admonitionblock]
387<div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
388<table><tr>
389<td class="icon">
390{data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}">
391{data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
cf7a2acc 392{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}")}"}">
ae0ad291
DM
393{icons%}<div class="title">{caption}</div>
394</td>
395<td class="content">
396<div class="title">{title}</div>
397|
398</td>
399</tr></table>
400</div>
401
402# Tables.
403[tabletags-default]
404colspec=<col{autowidth-option! style="width:{colpcwidth}%;"}>
405bodyrow=<tr>|</tr>
406headdata=<th class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</th>
407bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</td>
408paragraph=<p class="tableblock">|</p>
409
410[tabletags-header]
411paragraph=<p class="tableblock header">|</p>
412
413[tabletags-emphasis]
414paragraph=<p class="tableblock"><em>|</em></p>
415
416[tabletags-strong]
417paragraph=<p class="tableblock"><strong>|</strong></p>
418
419[tabletags-monospaced]
420paragraph=<p class="tableblock monospaced">|</p>
421
422[tabletags-verse]
423bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="verse">|</div></td>
424paragraph=
425
426[tabletags-literal]
427bodydata=<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>
428paragraph=
429
430[tabletags-asciidoc]
431bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div>|</div></td>
432paragraph=
433
434[table]
435<table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
436style="
437margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};
438float:{float};
439{autowidth-option%}width:{tablepcwidth}%;
440{autowidth-option#}{width#style=width:{tablepcwidth}%;}
441">
442<caption class="title">{caption={table-caption} {counter:table-number}. }{title}</caption>
443{colspecs}
444{headrows#}<thead>
445{headrows}
446{headrows#}</thead>
447{footrows#}<tfoot>
448{footrows}
449{footrows#}</tfoot>
450<tbody>
451{bodyrows}
452</tbody>
453</table>
454
455#--------------------------------------------------------------------
456# Deprecated old table definitions.
457#
458
459[miscellaneous]
460# Screen width in pixels.
461pagewidth=800
462pageunits=px
463
464[old_tabledef-default]
465template=old_table
466colspec=<col style="width:{colwidth}{pageunits};" />
467bodyrow=<tr>|</tr>
468headdata=<th class="tableblock halign-{colalign=left}">|</th>
469footdata=<td class="tableblock halign-{colalign=left}">|</td>
470bodydata=<td class="tableblock halign-{colalign=left}">|</td>
471
472[old_table]
473<table class="tableblock frame-{frame=all} grid-{grid=all}"{id? id="{id}"}>
474<caption class="title">{caption={table-caption}}{title}</caption>
475{colspecs}
476{headrows#}<thead>
477{headrows}
478{headrows#}</thead>
479{footrows#}<tfoot>
480{footrows}
481{footrows#}</tfoot>
482<tbody style="vertical-align:top;">
483{bodyrows}
484</tbody>
485</table>
486
487# End of deprecated old table definitions.
488#--------------------------------------------------------------------
489
490[floatingtitle]
491<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}>
492
493[preamble]
494# Untitled elements between header and first section title.
495<div id="preamble">
496<div class="sectionbody">
497|
498</div>
499</div>
500
501# Document sections.
502[sect0]
503<h1{id? id="{id}"}>{title}</h1>
504|
505
506[sect1]
507<div class="sect1{style? {style}}{role? {role}}">
508<h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2>
509<div class="sectionbody">
510|
511</div>
512</div>
513
514[sect2]
515<div class="sect2{style? {style}}{role? {role}}">
516<h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3>
517|
518</div>
519
520[sect3]
521<div class="sect3{style? {style}}{role? {role}}">
522<h4{id? id="{id}"}>{numbered?{sectnum} }{title}</h4>
523|
524</div>
525
526[sect4]
527<div class="sect4{style? {style}}{role? {role}}">
528<h5{id? id="{id}"}>{title}</h5>
529|
530</div>
531
532[appendix]
533<div class="sect1{style? {style}}{role? {role}}">
534<h2{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2>
535<div class="sectionbody">
536|
537</div>
538</div>
539
540[toc]
541<div id="toc">
6451ecbd 542 <a href="index.html" style="font-size: 0.8em;">↩Index</a>
ae0ad291
DM
543 <div id="toctitle">{toc-title}</div>
544 <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
545</div>
546
547[header]
548<!DOCTYPE html>
549<html lang="{lang=en}">
550<head>
551<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
552<meta name="generator" content="AsciiDoc {asciidoc-version}">
553<meta name="description" content="{description}">
554<meta name="keywords" content="{keywords}">
555<title>{title}</title>
556{title%}<title>{doctitle=}</title>
557ifdef::linkcss[]
558<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
559ifeval::["{source-highlighter}"=="pygments"]
560<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
561endif::[]
562
563# DEPRECATED: 'pygments' attribute.
564ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
565
566ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
567<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
568endif::linkcss[]
569ifndef::linkcss[]
570<style type="text/css">
571include1::{theme%}{stylesdir=/etc/asciidoc/stylesheets}/asciidoc.css[]
572include1::{themedir}/{theme}.css[]
573ifeval::["{source-highlighter}"=="pygments"]
574include1::{stylesdir=/etc/asciidoc/stylesheets}/pygments.css[]
575endif::[]
576
577# DEPRECATED: 'pygments' attribute.
578ifdef::pygments[]
579include1::{stylesdir=/etc/asciidoc/stylesheets}/pygments.css[]
580endif::pygments[]
581
582ifdef::toc2[]
583include1::{stylesdir=/etc/asciidoc/stylesheets}/toc2.css[]
584endif::toc2[]
585include1::{stylesheet}[]
586</style>
587endif::linkcss[]
237d09b9
TL
588
589ifdef::toc2[]
590<style type="text/css">
591div #toc {
ea17ced9
TL
592 width: 19em;
593 font-family: sans;
396e1d03 594 border-right: 3px solid gainsboro;
237d09b9 595}
396e1d03 596.book, .article {
237d09b9
TL
597 margin-left: 22em
598}
ea17ced9
TL
599div #toc a:link, div #toc a:visited {
600 color: black;
601 text-decoration: none;
602}
603div #toc a:hover {
604 text-decoration: underline;
605}
606div .toclevel1 {
607 font-size: 1.1em;
608 margin-bottom: 0.3em;
609}
cc38b925
TL
610
611.monospaced, code, pre {
612 overflow-wrap: break-word;
613}
614img {
615 max-width: 100%;
616}
617
ea17ced9
TL
618@media only screen and (min-width: 85em) {
619div #toc {
620 width: 22em
621}
396e1d03 622.book, .article {
ea17ced9
TL
623 margin-left: 25em
624}
625div .toclevel1 {
626 font-size: 1.2em;
627}
628}
237d09b9
TL
629</style>
630endif::toc2[]
631
864c4d12
SS
632<style type="text/css">
633include1::{stylesdir=.}/pve-docs.css[]
634</style>
635
ae0ad291
DM
636ifndef::disable-javascript[]
637ifdef::linkcss[]
638<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
639<script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
640<script type="text/javascript">
641#TODO: Escape not necessary in HTML5?
642# Escape as CDATA to pass validators.
643/*<![CDATA[*/
644asciidoc.install({toc,toc2?{toclevels}});
645/*]]>*/
646</script>
647endif::linkcss[]
648ifndef::linkcss[]
649<script type="text/javascript">
650# Escape as CDATA to pass validators.
651/*<![CDATA[*/
652include1::{scriptsdir=/etc/asciidoc/javascripts}/asciidoc.js[]
653include1::{themedir}/{theme}.js[warnings=False]
654asciidoc.install({toc,toc2?{toclevels}});
655/*]]>*/
656</script>
657endif::linkcss[]
658endif::disable-javascript[]
659ifdef::asciimath[]
660ifdef::linkcss[]
661<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
662endif::linkcss[]
663ifndef::linkcss[]
664<script type="text/javascript">
665# Escape as CDATA to pass validators.
666/*<![CDATA[*/
667include1::{scriptsdir=/etc/asciidoc/javascripts}/ASCIIMathML.js[]
668/*]]>*/
669</script>
670endif::linkcss[]
671endif::asciimath[]
672ifdef::latexmath[]
673ifdef::linkcss[]
674<script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
675endif::linkcss[]
676ifndef::linkcss[]
677<script type="text/javascript">
678# Escape as CDATA to pass validators.
679/*<![CDATA[*/
680include1::{scriptsdir=/etc/asciidoc/javascripts}/LaTeXMathML.js[]
681/*]]>*/
682</script>
683endif::linkcss[]
684endif::latexmath[]
685{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
686{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
687template::[docinfo]
688</head>
689<body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
690# Article, book header.
691ifndef::doctype-manpage[]
692<div id="header">
693ifndef::notitle[<h1>{doctitle}</h1>]
694ifdef::doctitle[]
695<span id="author">{author}</span><br>
696<span id="email" class="monospaced">&lt;<a href="mailto:{email}">{email}</a>&gt;</span><br>
697<span id="revnumber">version {revnumber}{revdate?,}</span>
698<span id="revdate">{revdate}</span>
699<br><span id="revremark">{revremark}</span>
700endif::doctitle[]
701{toc,toc2#}{toc-placement$auto:}{template:toc}
702</div>
703endif::doctype-manpage[]
704# Man page header.
705ifdef::doctype-manpage[]
706<div id="header">
707<h1>
708{doctitle} Manual Page
709</h1>
710{toc,toc2#}{toc-placement$auto:}{template:toc}
711<h2>{manname-title}</h2>
712<div class="sectionbody">
713<p>{manname} -
714 {manpurpose}
715</p>
716</div>
717</div>
718endif::doctype-manpage[]
719<div id="content">
720
721[footer]
722</div>
723{disable-javascript%<div id="footnotes"><hr></div>}
724<div id="footer">
725# Removing footer date and version if footer-style set to none
726ifeval::["{footer-style=default}"!="none"]
727<div id="footer-text">
728template::[footer-text]
729</div>
730endif::[]
731ifdef::badges[]
732<div id="footer-badges">
733ifndef::icons[]
734Valid <a href="http://validator.w3.org/check?uri=referer">HTML5</a>
735and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
736endif::icons[]
737ifdef::icons[]
738<a href="http://validator.w3.org/check?uri=referer">
739 <img src="http://www.w3.org/html/logo/badge/html5-badge-h-solo.png"
740 width="30" alt="HTML5 Powered" title="HTML5 Powered">
741</a>
742<a href="http://jigsaw.w3.org/css-validator/check/referer">
743 <img style="border:0;width:88px;height:31px"
744 src="http://www.w3.org/Icons/valid-css"
745 alt="Valid CSS!">
746</a>
747endif::icons[]
748</div>
749endif::badges[]
750</div>
751</body>
752</html>
753
754[footer-date]
755# Default footer date is document modification time
756ifeval::["{footer-style=default}"!="revdate"]
757 {docdate} {doctime}
758endif::[]
759# If set to "revdate", it'll be set to the revision date
760ifeval::["{footer-style=default}"=="revdate"]
761 {revdate}
762endif::[]
763
764ifdef::doctype-manpage[]
765[synopsis]
766template::[sect1]
767endif::doctype-manpage[]
768