]> git.proxmox.com Git - pve-docs.git/blobdiff - asciidoc/mediawiki.conf
totp: fix copy/paste mistake
[pve-docs.git] / asciidoc / mediawiki.conf
index 5e1a8f00c022f8fa8f009a7e0300c9c32cd9db3a..81e8efbc3d312fd66d423baaca75b5f6f18da6c7 100644 (file)
@@ -1,8 +1,8 @@
 #
-# html5.conf
+# mediawiki.conf (based on html5.conf)
 #
 # Asciidoc configuration file.
-# html5 backend.
+# html5 backend for Proxmox VE mediawiki imports
 #
 
 [miscellaneous]
@@ -12,6 +12,7 @@ outfilesuffix=.html
 basebackend=html
 basebackend-html=
 basebackend-html5=
+basebackend-mediawiki=
 
 [replacements2]
 # Line break.
@@ -81,7 +82,7 @@ latexmath-style=template="latexmathblock",subs=()
 <a class="image" href="{link}">
 {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}>
 {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}
-{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}")}"}">
+{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}")}"}">
 {link#}</a>
 </span>
 
@@ -91,7 +92,7 @@ latexmath-style=template="latexmathblock",subs=()
 <a class="image" href="{link}">
 {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}>
 {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}
-{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}")}"}">
+{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}")}"}">
 {link#}</a>
 </div>
 <div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
@@ -150,7 +151,7 @@ ifndef::data-uri[]
 endif::data-uri[]
 ifdef::data-uri[]
 <img alt="{index}" 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/{index}.png}")}"}">
+{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}")}"}">
 endif::data-uri[]
 endif::icons[]
 
@@ -163,7 +164,7 @@ endif::icons[]
 
 [literal-inlinemacro]
 # Inline literal.
-<span class="monospaced">{passtext}</span>
+<tt><span class="monospaced">{passtext}</span></tt>
 
 # List tags.
 [listtags-bulleted]
@@ -213,7 +214,7 @@ ifndef::data-uri[]
 item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}"></td><td>|</td></tr>
 endif::data-uri[]
 ifdef::data-uri[]
-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>
+item=<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>
 endif::data-uri[]
 text=|
 endif::icons[]
@@ -235,7 +236,7 @@ text=<p>|</p>
 # Quoted text.
 emphasis=<em>{1?<span class="{1}">}|{1?</span>}</em>
 strong=<strong>{1?<span class="{1}">}|{1?</span>}</strong>
-monospaced=<span class="monospaced{1? {1}}">|</span>
+monospaced=<tt><span class="monospaced{1? {1}}">|</span></tt>
 singlequoted={lsquo}{1?<span class="{1}">}|{1?</span>}{rsquo}
 doublequoted={ldquo}{1?<span class="{1}">}|{1?</span>}{rdquo}
 unquoted={1?<span class="{1}">}|{1?</span>}
@@ -291,13 +292,21 @@ endif::deprecated-quotes[]
 [emphasizedwords]
 <em>{words}</em>
 [monospacedwords]
-<span class="monospaced">{words}</span>
+<tt>{words}</tt>
 [strongwords]
 <strong>{words}</strong>
 
 # Paragraph substitution.
 [paragraph]
-<div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<p>
+<div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
+{thumbnail#}<a class="image" href="/pve-docs/images/{thumbnail}">
+{thumbnail#}<img src="/pve-docs/images/{thumbnail}" alt="{alt={thumbnail}}" width=250
+{thumbnail#}{float@left: style="padding\: 0 10px 0 0;float\:left;"}
+{thumbnail#}{float@right: style="padding\: 0 0 0 10px;float\:right;"}
+{thumbnail#}{float%} style="padding: 0 0 0 10px;float:right;"
+{thumbnail#}></a>
+{title#}<div class="title"><h5>{title}</h5></div>
+<p>
 |
 </p></div>
 
@@ -309,18 +318,18 @@ template::[admonitionblock]
 <div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
 <div class="title">{caption=}{title}</div>
 <div class="content monospaced">
-<pre>
+<pre><tt>
 |
-</pre>
+</tt></pre>
 </div></div>
 
 [literalblock]
 <div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
 <div class="title">{title}</div>
 <div class="content monospaced">
-<pre>
+<pre><tt>
 |
-</pre>
+</tt></pre>
 </div></div>
 
 [sidebarblock]
@@ -378,7 +387,7 @@ template::[quoteblock]
 <td class="icon">
 {data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}">
 {data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
-{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}")}"}">
+{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}")}"}">
 {icons%}<div class="title">{caption}</div>
 </td>
 <td class="content">
@@ -406,14 +415,14 @@ paragraph=<p class="tableblock"><em>|</em></p>
 paragraph=<p class="tableblock"><strong>|</strong></p>
 
 [tabletags-monospaced]
-paragraph=<p class="tableblock monospaced">|</p>
+paragraph=<p class="tableblock monospaced"><tt>|</tt></p>
 
 [tabletags-verse]
 bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="verse">|</div></td>
 paragraph=
 
 [tabletags-literal]
-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>
+bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="literal monospaced"><pre><tt>|</tt></pre></div></td>
 paragraph=
 
 [tabletags-asciidoc]
@@ -421,7 +430,7 @@ bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspa
 paragraph=
 
 [table]
-<table class="tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
+<table class="wikitable tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}
 style="
 margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0};
 float:{float};
@@ -518,6 +527,12 @@ bodydata=<td class="tableblock halign-{colalign=left}">|</td>
 |
 </div>
 
+[sect5]
+<div class="sect5{style? {style}}{role? {role}}">
+<h6{id? id="{id}"}>{title}</h6>
+|
+</div>
+
 [appendix]
 <div class="sect1{style? {style}}{role? {role}}">
 <h2{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2>
@@ -527,169 +542,25 @@ bodydata=<td class="tableblock halign-{colalign=left}">|</td>
 </div>
 
 [toc]
-<div id="toc">
-  <div id="toctitle">{toc-title}</div>
-  <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
+<div id="toc" class="toc">
 </div>
 
 [header]
-<!DOCTYPE html>
-<html lang="{lang=en}">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset={encoding}">
-<meta name="generator" content="AsciiDoc {asciidoc-version}">
-<meta name="description" content="{description}">
-<meta name="keywords" content="{keywords}">
-<title>{title}</title>
-{title%}<title>{doctitle=}</title>
-ifdef::linkcss[]
-<link rel="stylesheet" href="{stylesdir=.}/{theme=asciidoc}.css" type="text/css">
-ifeval::["{source-highlighter}"=="pygments"]
-<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">
-endif::[]
-
-# DEPRECATED: 'pygments' attribute.
-ifdef::pygments[<link rel="stylesheet" href="{stylesdir=.}/pygments.css" type="text/css">]
-
-ifdef::toc2[<link rel="stylesheet" href="{stylesdir=.}/toc2.css" type="text/css" />]
-<link rel="stylesheet" href="{stylesdir=.}/{stylesheet}" type="text/css">
-endif::linkcss[]
-ifndef::linkcss[]
-<style type="text/css">
-include1::{theme%}{stylesdir=./stylesheets}/asciidoc.css[]
-include1::{themedir}/{theme}.css[]
-ifeval::["{source-highlighter}"=="pygments"]
-include1::{stylesdir=./stylesheets}/pygments.css[]
-endif::[]
-
-# DEPRECATED: 'pygments' attribute.
-ifdef::pygments[]
-include1::{stylesdir=./stylesheets}/pygments.css[]
-endif::pygments[]
-
-ifdef::toc2[]
-include1::{stylesdir=./stylesheets}/toc2.css[]
-endif::toc2[]
-include1::{stylesheet}[]
+template::[toc]
+<div id="asciidoccontent">
+<style type="text/css" scoped>
+td.hdlist1 {
+   vertical-align: top;
+}
+td.hdlist2 {
+  vertical-align: top;
+}
 </style>
-endif::linkcss[]
-ifndef::disable-javascript[]
-ifdef::linkcss[]
-<script type="text/javascript" src="{scriptsdir=.}/asciidoc.js"></script>
-<script type="text/javascript" src="{scriptsdir=.}/{theme}.js"></script>
-<script type="text/javascript">
-#TODO: Escape not necessary in HTML5?
-# Escape as CDATA to pass validators.
-/*<![CDATA[*/
-asciidoc.install({toc,toc2?{toclevels}});
-/*]]>*/
-</script>
-endif::linkcss[]
-ifndef::linkcss[]
-<script type="text/javascript">
-# Escape as CDATA to pass validators.
-/*<![CDATA[*/
-include1::{scriptsdir=./javascripts}/asciidoc.js[]
-include1::{themedir}/{theme}.js[warnings=False]
-asciidoc.install({toc,toc2?{toclevels}});
-/*]]>*/
-</script>
-endif::linkcss[]
-endif::disable-javascript[]
-ifdef::asciimath[]
-ifdef::linkcss[]
-<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
-endif::linkcss[]
-ifndef::linkcss[]
-<script type="text/javascript">
-# Escape as CDATA to pass validators.
-/*<![CDATA[*/
-include1::{scriptsdir=./javascripts}/ASCIIMathML.js[]
-/*]]>*/
-</script>
-endif::linkcss[]
-endif::asciimath[]
-ifdef::latexmath[]
-ifdef::linkcss[]
-<script type="text/javascript" src="{scriptsdir=.}/LaTeXMathML.js"></script>
-endif::linkcss[]
-ifndef::linkcss[]
-<script type="text/javascript">
-# Escape as CDATA to pass validators.
-/*<![CDATA[*/
-include1::{scriptsdir=./javascripts}/LaTeXMathML.js[]
-/*]]>*/
-</script>
-endif::linkcss[]
-endif::latexmath[]
-{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
-{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
-template::[docinfo]
-</head>
-<body class="{doctype}"{max-width? style="max-width:{max-width}"}{css-signature? id="{css-signature}"}>
-# Article, book header.
-ifndef::doctype-manpage[]
-<div id="header">
-ifndef::notitle[<h1>{doctitle}</h1>]
-ifdef::doctitle[]
-<span id="author">{author}</span><br>
-<span id="email" class="monospaced">&lt;<a href="mailto:{email}">{email}</a>&gt;</span><br>
-<span id="revnumber">version {revnumber}{revdate?,}</span>
-<span id="revdate">{revdate}</span>
-<br><span id="revremark">{revremark}</span>
-endif::doctitle[]
-{toc,toc2#}{toc-placement$auto:}{template:toc}
-</div>
-endif::doctype-manpage[]
-# Man page header.
-ifdef::doctype-manpage[]
-<div id="header">
-<h1>
-{doctitle} Manual Page
-</h1>
-{toc,toc2#}{toc-placement$auto:}{template:toc}
-<h2>{manname-title}</h2>
-<div class="sectionbody">
-<p>{manname} -
-   {manpurpose}
-</p>
-</div>
-</div>
-endif::doctype-manpage[]
-<div id="content">
 
 [footer]
+<!-- FOOTER -->
 </div>
-{disable-javascript%<div id="footnotes"><hr></div>}
-<div id="footer">
-# Removing footer date and version if footer-style set to none
-ifeval::["{footer-style=default}"!="none"]
-<div id="footer-text">
-template::[footer-text]
-</div>
-endif::[]
-ifdef::badges[]
-<div id="footer-badges">
-ifndef::icons[]
-Valid <a href="http://validator.w3.org/check?uri=referer">HTML5</a>
-and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
-endif::icons[]
-ifdef::icons[]
-<a href="http://validator.w3.org/check?uri=referer">
-  <img src="http://www.w3.org/html/logo/badge/html5-badge-h-solo.png"
-       width="30" alt="HTML5 Powered" title="HTML5 Powered">
-</a>
-<a href="http://jigsaw.w3.org/css-validator/check/referer">
-  <img style="border:0;width:88px;height:31px"
-    src="http://www.w3.org/Icons/valid-css"
-    alt="Valid CSS!">
-</a>
-endif::icons[]
-</div>
-endif::badges[]
-</div>
-</body>
-</html>
+<div id="footnotes"></div>
 
 [footer-date]
 # Default footer date is document modification time