Skip to content

Commit ae0ad29

Browse files
committed
pve-html.conf: html5 backend with thumbnail support
1 parent 2522a62 commit ae0ad29

File tree

3 files changed

+721
-2
lines changed

3 files changed

+721
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ INDEX_INCLUDES= \
7878
man8-index-table.adoc \
7979
$(sort $(addsuffix .html, ${MANUAL_PAGES}) ${CHAPTER_LIST})
8080

81-
ADOC_STDARG= -b html5 -a icons -a data-uri -a "date=$(shell date)" -a "revnumber=${DOCRELEASE}"
81+
ADOC_STDARG=-b $(shell pwd)/asciidoc/pve-html -f asciidoc/asciidoc-pve.conf -a icons -a data-uri -a "date=$(shell date)" -a "revnumber=${DOCRELEASE}"
8282

8383
BROWSER?=xdg-open
8484

@@ -113,7 +113,7 @@ index.html: index.adoc ${API_VIEWER_SOURCES} ${INDEX_INCLUDES}
113113
asciidoc ${ADOC_STDARG} -o $@ index.adoc
114114

115115
pve-admin-guide.html: ${PVE_ADMIN_GUIDE_ADOCDEPENDS}
116-
asciidoc -a pvelogo ${ADOC_STDARG} pve-admin-guide.adoc
116+
asciidoc -a pvelogo ${ADOC_STDARG} -o $@ pve-admin-guide.adoc
117117

118118
pve-admin-guide.chunked: ${PVE_ADMIN_GUIDE_ADOCDEPENDS}
119119
rm -rf pve-admin-guide.chunked
@@ -162,6 +162,7 @@ ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB}: index.html ${INDEX_INCLUDES} ${WIKI_IMPO
162162
install -m 0755 asciidoc-pve build/usr/bin/
163163
install -D -m 0644 asciidoc/mediawiki.conf build/usr/share/${GEN_PACKAGE}/asciidoc/mediawiki.conf
164164
install -m 0644 asciidoc/asciidoc-pve.conf build/usr/share/${GEN_PACKAGE}/asciidoc/
165+
install -m 0644 asciidoc/pve-html.conf build/usr/share/${GEN_PACKAGE}/asciidoc/
165166
# install files for pvedocs package
166167
mkdir -p build/usr/share/${DOC_PACKAGE}
167168
mkdir -p build/usr/share/doc/${DOC_PACKAGE}

asciidoc-pve.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ sub compile_asciidoc {
393393
(($env eq 'manvolnum') && ($man_target eq 'wiki'))) {
394394

395395
push @$cmd, '-b', "$adoc_source_dir/asciidoc/mediawiki";
396+
} else {
397+
push @$cmd, '-b', "$adoc_source_dir/asciidoc/pve-html";
396398
}
397399

398400
foreach my $key (keys %$attributes) {

0 commit comments

Comments
 (0)