diff --git a/Makefile b/Makefile
index a269271..2f5e971 100644
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ INDEX_INCLUDES= \
man8-index-table.adoc \
$(sort $(addsuffix .html, ${MANUAL_PAGES}) ${CHAPTER_LIST})
-ADOC_STDARG= -b html5 -a icons -a data-uri -a "date=$(shell date)" -a "revnumber=${DOCRELEASE}"
+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}"
BROWSER?=xdg-open
@@ -113,7 +113,7 @@ index.html: index.adoc ${API_VIEWER_SOURCES} ${INDEX_INCLUDES}
asciidoc ${ADOC_STDARG} -o $@ index.adoc
pve-admin-guide.html: ${PVE_ADMIN_GUIDE_ADOCDEPENDS}
- asciidoc -a pvelogo ${ADOC_STDARG} pve-admin-guide.adoc
+ asciidoc -a pvelogo ${ADOC_STDARG} -o $@ pve-admin-guide.adoc
pve-admin-guide.chunked: ${PVE_ADMIN_GUIDE_ADOCDEPENDS}
rm -rf pve-admin-guide.chunked
@@ -162,6 +162,7 @@ ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB}: index.html ${INDEX_INCLUDES} ${WIKI_IMPO
install -m 0755 asciidoc-pve build/usr/bin/
install -D -m 0644 asciidoc/mediawiki.conf build/usr/share/${GEN_PACKAGE}/asciidoc/mediawiki.conf
install -m 0644 asciidoc/asciidoc-pve.conf build/usr/share/${GEN_PACKAGE}/asciidoc/
+ install -m 0644 asciidoc/pve-html.conf build/usr/share/${GEN_PACKAGE}/asciidoc/
# install files for pvedocs package
mkdir -p build/usr/share/${DOC_PACKAGE}
mkdir -p build/usr/share/doc/${DOC_PACKAGE}
diff --git a/asciidoc-pve.in b/asciidoc-pve.in
index f56eaea..83a6c5c 100644
--- a/asciidoc-pve.in
+++ b/asciidoc-pve.in
@@ -393,6 +393,8 @@ sub compile_asciidoc {
(($env eq 'manvolnum') && ($man_target eq 'wiki'))) {
push @$cmd, '-b', "$adoc_source_dir/asciidoc/mediawiki";
+ } else {
+ push @$cmd, '-b', "$adoc_source_dir/asciidoc/pve-html";
}
foreach my $key (keys %$attributes) {
diff --git a/asciidoc/pve-html.conf b/asciidoc/pve-html.conf
new file mode 100644
index 0000000..698dcc7
--- /dev/null
+++ b/asciidoc/pve-html.conf
@@ -0,0 +1,716 @@
+#
+# html5.conf
+#
+# Asciidoc configuration file.
+# html5 backend.
+#
+# modified for Proxmox VE docs
+# - add thumbnail attribute
+# - s!./stylesheets!/etc/asciidoc/stylesheets!g
+# - s!./javascripts!/etc/asciidoc/javascripts!g
+
+[miscellaneous]
+outfilesuffix=.html
+
+[attributes]
+basebackend=html
+basebackend-html=
+basebackend-html5=
+
+[replacements2]
+# Line break.
+(?m)^(.*)\s\+$=\1
+
+[replacements]
+ifdef::asciidoc7compatible[]
+# Superscripts.
+\^(.+?)\^=\1
+# Subscripts.
+~(.+?)~=\1
+endif::asciidoc7compatible[]
+
+[ruler-blockmacro]
+
+
+[pagebreak-blockmacro]
+
+
+[blockdef-pass]
+asciimath-style=template="asciimathblock",subs=()
+latexmath-style=template="latexmathblock",subs=()
+
+[macros]
+(?u)^(?Paudio|video)::(?P\S*?)(\[(?P.*?)\])$=#
+# math macros.
+# Special characters are escaped in HTML math markup.
+(?su)[\\]?(?Pasciimath|latexmath):(?P\S*?)\[(?P.*?)(?asciimath|latexmath)::(?P\S*?)(\[(?P.*?)\])$=#[specialcharacters]
+
+[asciimath-inlinemacro]
+`{passtext}`
+
+[asciimath-blockmacro]
+
+
+[asciimathblock]
+
+
+[latexmath-inlinemacro]
+{passtext}
+
+[latexmath-blockmacro]
+
+
+[latexmathblock]
+
+
+[image-inlinemacro]
+
+
+{data-uri%}
+{data-uri#}
+{link#}
+
+
+[image-blockmacro]
+
+
+
{caption={figure-caption} {counter:figure-number}. }{title}
+
+
+[audio-blockmacro]
+
+
{caption=}{title}
+
+
+Your browser does not support the audio tag.
+
+
+
+[video-blockmacro]
+
+
{caption=}{title}
+
+
+Your browser does not support the video tag.
+
+
+
+[unfloat-blockmacro]
+
+
+[toc-blockmacro]
+template::[toc]
+
+[indexterm-inlinemacro]
+# Index term.
+{empty}
+
+[indexterm2-inlinemacro]
+# Index term.
+# Single entry index term that is visible in the primary text flow.
+{1}
+
+[footnote-inlinemacro]
+# footnote:[].
+
+
+[footnoteref-inlinemacro]
+# footnoteref:[], create reference to footnote.
+{2%}
+# footnoteref:[,], create footnote with ID.
+{2#}
+
+[callout-inlinemacro]
+ifndef::icons[]
+<{index}>
+endif::icons[]
+ifdef::icons[]
+ifndef::data-uri[]
+
+endif::data-uri[]
+ifdef::data-uri[]
+
+endif::data-uri[]
+endif::icons[]
+
+# Comment line macros.
+[comment-inlinemacro]
+{showcomments#}
+
+[comment-blockmacro]
+{showcomments#}
+
+[literal-inlinemacro]
+# Inline literal.
+{passtext}
+
+# List tags.
+[listtags-bulleted]
+list=
+item=|
+text=|
+
+[listtags-numbered]
+# The start attribute is not valid XHTML 1.1 but all browsers support it.
+list=
+item=|
+text=|
+
+[listtags-labeled]
+list=
+entry=
+label=
+term=|
+item=|
+text=|
+
+[listtags-horizontal]
+list={title?
{title}
}
{labelwidth? }{itemwidth? }|
+label=|
+term=|
+entry=|
+item=|
+text=|
+
+[listtags-qanda]
+list=
+entry=|
+label=
+term=|
+item=
+text=|
+
+[listtags-callout]
+ifndef::icons[]
+list=
+item=|
+text=|
+endif::icons[]
+ifdef::icons[]
+list=
+ifndef::data-uri[]
+item=|
+endif::data-uri[]
+ifdef::data-uri[]
+item=|
+endif::data-uri[]
+text=|
+endif::icons[]
+
+[listtags-glossary]
+list=
+label=
+entry=
+term=|
+item=|
+text=|
+
+[listtags-bibliography]
+list=
+item=|
+text=|
+
+[tags]
+# Quoted text.
+emphasis={1?}|{1? }
+strong={1?}|{1? }
+monospaced=|
+singlequoted={lsquo}{1?}|{1? }{rsquo}
+doublequoted={ldquo}{1?}|{1? }{rdquo}
+unquoted={1?}|{1? }
+superscript={1?}|{1? }
+subscript={1?}|{1? }
+
+ifdef::deprecated-quotes[]
+# Override with deprecated quote attributes.
+emphasis={role?}| {role? }
+strong={role?}| {role? }
+monospaced=|
+singlequoted={role?}{1,2,3?}{amp}#8216;|{amp}#8217;{1,2,3? }{role? }
+doublequoted={role?}{1,2,3?}{amp}#8220;|{amp}#8221;{1,2,3? }{role? }
+unquoted={role?}{1,2,3?}|{1,2,3? }{role? }
+superscript={role?}| {role? }
+subscript={role?}| {role? }
+endif::deprecated-quotes[]
+
+# Inline macros
+[http-inlinemacro]
+{0={name}:{target}}
+[https-inlinemacro]
+{0={name}:{target}}
+[ftp-inlinemacro]
+{0={name}:{target}}
+[file-inlinemacro]
+{0={name}:{target}}
+[irc-inlinemacro]
+{0={name}:{target}}
+[mailto-inlinemacro]
+{0={target}}
+[link-inlinemacro]
+{0={target}}
+[callto-inlinemacro]
+{0={target}}
+# anchor:id[text]
+[anchor-inlinemacro]
+
+# [[id,text]]
+[anchor2-inlinemacro]
+
+# [[[id]]]
+[anchor3-inlinemacro]
+ [{1}]
+# xref:id[text]
+[xref-inlinemacro]
+{0=[{target}]}
+# <>
+[xref2-inlinemacro]
+{2=[{1}]}
+
+# Special word substitution.
+[emphasizedwords]
+{words}
+[monospacedwords]
+{words}
+[strongwords]
+{words}
+
+# Paragraph substitution.
+[paragraph]
+
+
+[admonitionparagraph]
+template::[admonitionblock]
+
+# Delimited blocks.
+[listingblock]
+
+
+[literalblock]
+
+
+[sidebarblock]
+
+
+[openblock]
+
+
+[partintroblock]
+template::[openblock]
+
+[abstractblock]
+template::[quoteblock]
+
+[quoteblock]
+
+
{title}
+
+|
+
+
+{citetitle} {attribution? }
+— {attribution}
+
+
+[verseblock]
+
+
{title}
+
+|
+
+
+{citetitle} {attribution? }
+— {attribution}
+
+
+[exampleblock]
+
+
{caption={example-caption} {counter:example-number}. }{title}
+
+|
+
+
+[admonitionblock]
+
+
+
+{data-uri%}{icons#}
+{data-uri#}{icons#}
+{icons%}{caption}
+
+
+{title}
+|
+
+
+
+
+# Tables.
+[tabletags-default]
+colspec=
+bodyrow=|
+headdata=|
+bodydata=|
+paragraph=|
+
+[tabletags-header]
+paragraph=
+
+[tabletags-emphasis]
+paragraph=|
+
+[tabletags-strong]
+paragraph=|
+
+[tabletags-monospaced]
+paragraph=|
+
+[tabletags-verse]
+bodydata=|
+paragraph=
+
+[tabletags-literal]
+bodydata=
+paragraph=
+
+[tabletags-asciidoc]
+bodydata=|
+paragraph=
+
+[table]
+
+{caption={table-caption} {counter:table-number}. }{title}
+{colspecs}
+{headrows#}
+{headrows}
+{headrows#}
+{footrows#}
+{footrows}
+{footrows#}
+
+{bodyrows}
+
+
+
+#--------------------------------------------------------------------
+# Deprecated old table definitions.
+#
+
+[miscellaneous]
+# Screen width in pixels.
+pagewidth=800
+pageunits=px
+
+[old_tabledef-default]
+template=old_table
+colspec=
+bodyrow=|
+headdata=|
+footdata=|
+bodydata=|
+
+[old_table]
+
+{caption={table-caption}}{title}
+{colspecs}
+{headrows#}
+{headrows}
+{headrows#}
+{footrows#}
+{footrows}
+{footrows#}
+
+{bodyrows}
+
+
+
+# End of deprecated old table definitions.
+#--------------------------------------------------------------------
+
+[floatingtitle]
+{title}
+
+[preamble]
+# Untitled elements between header and first section title.
+
+
+# Document sections.
+[sect0]
+{title}
+|
+
+[sect1]
+
+
{numbered?{sectnum} }{title}
+
+|
+
+
+
+[sect2]
+
+
{numbered?{sectnum} }{title}
+|
+
+
+[sect3]
+
+
{numbered?{sectnum} }{title}
+|
+
+
+[sect4]
+
+
{title}
+|
+
+
+[appendix]
+
+
{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}
+
+|
+
+
+
+[toc]
+
+
{toc-title}
+
JavaScript must be enabled in your browser to display the table of contents.
+
+
+[header]
+
+
+
+
+
+
+
+{title}
+{title%}{doctitle=}
+ifdef::linkcss[]
+
+ifeval::["{source-highlighter}"=="pygments"]
+
+endif::[]
+
+# DEPRECATED: 'pygments' attribute.
+ifdef::pygments[ ]
+
+ifdef::toc2[ ]
+
+endif::linkcss[]
+ifndef::linkcss[]
+
+endif::linkcss[]
+ifndef::disable-javascript[]
+ifdef::linkcss[]
+
+
+
+endif::linkcss[]
+ifndef::linkcss[]
+
+endif::linkcss[]
+endif::disable-javascript[]
+ifdef::asciimath[]
+ifdef::linkcss[]
+
+endif::linkcss[]
+ifndef::linkcss[]
+
+endif::linkcss[]
+endif::asciimath[]
+ifdef::latexmath[]
+ifdef::linkcss[]
+
+endif::linkcss[]
+ifndef::linkcss[]
+
+endif::linkcss[]
+endif::latexmath[]
+{docinfo1,docinfo2#}{include:{docdir}/docinfo.html}
+{docinfo,docinfo2#}{include:{docdir}/{docname}-docinfo.html}
+template::[docinfo]
+
+
+# Article, book header.
+ifndef::doctype-manpage[]
+
+endif::doctype-manpage[]
+# Man page header.
+ifdef::doctype-manpage[]
+
+endif::doctype-manpage[]
+
+
+[footer]
+
+{disable-javascript%}
+
+
+
+
+[footer-date]
+# Default footer date is document modification time
+ifeval::["{footer-style=default}"!="revdate"]
+ {docdate} {doctime}
+endif::[]
+# If set to "revdate", it'll be set to the revision date
+ifeval::["{footer-style=default}"=="revdate"]
+ {revdate}
+endif::[]
+
+ifdef::doctype-manpage[]
+[synopsis]
+template::[sect1]
+endif::doctype-manpage[]
+