mediawiki.conf: implement thumbnail attribute
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 7 Nov 2016 16:03:55 +0000 (17:03 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 7 Nov 2016 16:43:09 +0000 (17:43 +0100)
And install screenshot files

Makefile
asciidoc/mediawiki.conf

index 527b72c..ed5097b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -165,6 +165,9 @@ ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB}: index.html ${INDEX_INCLUDES} ${WIKI_IMPO
        mkdir -p build/usr/share/doc/${DOC_PACKAGE}
        install -m 0644 index.html ${INDEX_INCLUDES} build/usr/share/${DOC_PACKAGE}
        install -m 0644 ${WIKI_IMPORTS} build/usr/share/${DOC_PACKAGE}
+       # install screenshot images
+       mkdir -p build/usr/share/${DOC_PACKAGE}/images/screenshot
+       install -m 0644 images/screenshot/*.png build/usr/share/${DOC_PACKAGE}/images/screenshot
        # install api doc viewer
        mkdir build/usr/share/${DOC_PACKAGE}/api-viewer
        install -m 0644 ${API_VIEWER_SOURCES} build/usr/share/${DOC_PACKAGE}/api-viewer
index 2fe858c..ffbbb56 100644 (file)
@@ -298,7 +298,12 @@ endif::deprecated-quotes[]
 
 # Paragraph substitution.
 [paragraph]
-<div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>{title?<div class="title"><h5>{title}</h5></div>}<p>
+<div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}>
+{thumbnail#}<a class="image" href="/pve-docs/images/screenshot/{thumbnail}">
+{thumbnail#}<img src="/pve-docs/images/screenshot/{thumbnail}" alt="{alt={thumbnail}}" width=250 style="float:right;">
+{thumbnail#}</a>
+{title#}<div class="title"><h5>{title}</h5></div>}
+<p>
 |
 </p></div>