]> git.proxmox.com Git - pve-docs.git/blame - asciidoc/pve-html.conf
README.adoc: improve docs about screenshots
[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=()
40latexmath-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}>
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,
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}")}"}">
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[]
220item=<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>
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}">
306{thumbnail#}<img src="images/screenshot/{thumbnail}" alt="{alt={thumbnail}}" width=250 style="float:right;">
307{thumbnail#}</a>
308{title?<div class="title">{title}</div>}<p>
309|
310</p></div>
311
312[admonitionparagraph]
313template::[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]
349template::[openblock]
350
351[abstractblock]
352template::[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]
401colspec=<col{autowidth-option! style="width:{colpcwidth}%;"}>
402bodyrow=<tr>|</tr>
403headdata=<th class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</th>
404bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</td>
405paragraph=<p class="tableblock">|</p>
406
407[tabletags-header]
408paragraph=<p class="tableblock header">|</p>
409
410[tabletags-emphasis]
411paragraph=<p class="tableblock"><em>|</em></p>
412
413[tabletags-strong]
414paragraph=<p class="tableblock"><strong>|</strong></p>
415
416[tabletags-monospaced]
417paragraph=<p class="tableblock monospaced">|</p>
418
419[tabletags-verse]
420bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="verse">|</div></td>
421paragraph=
422
423[tabletags-literal]
424bodydata=<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>
425paragraph=
426
427[tabletags-asciidoc]
428bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div>|</div></td>
429paragraph=
430
431[table]
432<table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
433style="
434margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};
435float:{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.
458pagewidth=800
459pageunits=px
460
461[old_tabledef-default]
462template=old_table
463colspec=<col style="width:{colwidth}{pageunits};" />
464bodyrow=<tr>|</tr>
465headdata=<th class="tableblock halign-{colalign=left}">|</th>
466footdata=<td class="tableblock halign-{colalign=left}">|</td>
467bodydata=<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>
553ifdef::linkcss[]
554<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
555ifeval::["{source-highlighter}"=="pygments"]
556<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
557endif::[]
558
559# DEPRECATED: 'pygments' attribute.
560ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
561
562ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
563<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
564endif::linkcss[]
565ifndef::linkcss[]
566<style type="text/css">
567include1::{theme%}{stylesdir=/etc/asciidoc/stylesheets}/asciidoc.css[]
568include1::{themedir}/{theme}.css[]
569ifeval::["{source-highlighter}"=="pygments"]
570include1::{stylesdir=/etc/asciidoc/stylesheets}/pygments.css[]
571endif::[]
572
573# DEPRECATED: 'pygments' attribute.
574ifdef::pygments[]
575include1::{stylesdir=/etc/asciidoc/stylesheets}/pygments.css[]
576endif::pygments[]
577
578ifdef::toc2[]
579include1::{stylesdir=/etc/asciidoc/stylesheets}/toc2.css[]
580endif::toc2[]
581include1::{stylesheet}[]
582</style>
583endif::linkcss[]
584ifndef::disable-javascript[]
585ifdef::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[*/
592asciidoc.install({toc,toc2?{toclevels}});
593/*]]>*/
594</script>
595endif::linkcss[]
596ifndef::linkcss[]
597<script type="text/javascript">
598# Escape as CDATA to pass validators.
599/*<![CDATA[*/
600include1::{scriptsdir=/etc/asciidoc/javascripts}/asciidoc.js[]
601include1::{themedir}/{theme}.js[warnings=False]
602asciidoc.install({toc,toc2?{toclevels}});
603/*]]>*/
604</script>
605endif::linkcss[]
606endif::disable-javascript[]
607ifdef::asciimath[]
608ifdef::linkcss[]
609<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
610endif::linkcss[]
611ifndef::linkcss[]
612<script type="text/javascript">
613# Escape as CDATA to pass validators.
614/*<![CDATA[*/
615include1::{scriptsdir=/etc/asciidoc/javascripts}/ASCIIMathML.js[]
616/*]]>*/
617</script>
618endif::linkcss[]
619endif::asciimath[]
620ifdef::latexmath[]
621ifdef::linkcss[]
622<script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
623endif::linkcss[]
624ifndef::linkcss[]
625<script type="text/javascript">
626# Escape as CDATA to pass validators.
627/*<![CDATA[*/
628include1::{scriptsdir=/etc/asciidoc/javascripts}/LaTeXMathML.js[]
629/*]]>*/
630</script>
631endif::linkcss[]
632endif::latexmath[]
633{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
634{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
635template::[docinfo]
636</head>
637<body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
638# Article, book header.
639ifndef::doctype-manpage[]
640<div id="header">
641ifndef::notitle[<h1>{doctitle}</h1>]
642ifdef::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>
648endif::doctitle[]
649{toc,toc2#}{toc-placement$auto:}{template:toc}
650</div>
651endif::doctype-manpage[]
652# Man page header.
653ifdef::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>
666endif::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
674ifeval::["{footer-style=default}"!="none"]
675<div id="footer-text">
676template::[footer-text]
677</div>
678endif::[]
679ifdef::badges[]
680<div id="footer-badges">
681ifndef::icons[]
682Valid <a href="http://validator.w3.org/check?uri=referer">HTML5</a>
683and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
684endif::icons[]
685ifdef::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>
695endif::icons[]
696</div>
697endif::badges[]
698</div>
699</body>
700</html>
701
702[footer-date]
703# Default footer date is document modification time
704ifeval::["{footer-style=default}"!="revdate"]
705 {docdate} {doctime}
706endif::[]
707# If set to "revdate", it'll be set to the revision date
708ifeval::["{footer-style=default}"=="revdate"]
709 {revdate}
710endif::[]
711
712ifdef::doctype-manpage[]
713[synopsis]
714template::[sect1]
715endif::doctype-manpage[]
716