]> git.proxmox.com Git - pve-docs.git/commitdiff
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 527b72cf02415a07ba796a89ac9e4a5c23a88c77..ed5097bf5517764cfa878f0c3acbb8b77eb6bcbd 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 2fe858c1fdef070141e823e7fccdee5cc8d26641..ffbbb561dda67e8917c57cb1a42c51fc6da6b0ec 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>