MEDIAWIKI_PACKAGE=pve-docs-mediawiki
# also update debian/changelog
-PKGREL=3
+PKGREL=5
GITVERSION:=$(shell cat .git/refs/heads/master)
pvesm \
pveum \
vzdump \
- ha-manager
+ ha-manager \
+ pveperf
SERVICE_LIST= \
pve-firewall \
INSTALLATION_SOURCES= \
pve-usbstick.adoc \
+ pve-system-requirements.adoc \
pve-installation.adoc
SYSADMIN_PARTS= \
- getting-help \
pve-network \
pve-package-repos \
system-software-updates \
+ pve-disk-health-monitoring \
local-lvm \
local-zfs
${SYSADMIN_SOURCES} \
pve-admin-guide.adoc \
pve-intro.adoc \
+ getting-help.adoc \
${INSTALLATION_SOURCES} \
pmxcfs.adoc \
pmxcfs.8-cli.adoc \
${PVEAM_MAN1_SOURCES} \
${PVESUBSCRIPTION_MAN1_SOURCES} \
${PVECEPH_MAN1_SOURCES} \
+ ${PVEPERF_MAN1_SOURCES} \
pve-bibliography.adoc \
$(addsuffix .adoc, ${COMMAND_LIST}) \
$(addsuffix .adoc, ${SERVICE_LIST}) \
GFDL.adoc \
attributes.txt
+link-refs.json: scan-adoc-refs ${PVE_ADMIN_GUIDE_SOURCES}
+ ./scan-adoc-refs ${PVE_ADMIN_GUIDE_SOURCES} >link-refs.json
+
+asciidoc-pve: asciidoc-pve.in link-refs.json
+ cat asciidoc-pve.in link-refs.json >asciidoc-pve.tmp
+ sed -e s/@RELEASE@/${DOCRELEASE}/ -i asciidoc-pve.tmp
+ chmod +x asciidoc-pve.tmp
+ mv asciidoc-pve.tmp asciidoc-pve
+
+test: asciidoc-pve
+ ./asciidoc-pve compile-wiki-section pve-package-repos.adoc
+ #./asciidoc-pve compile-wiki-chapter ha-manager.adoc
+
WIKI_IMPORTS= \
section-pve-usbstick-plain.html \
+ section-getting-help-plain.html \
+ section-pve-system-requirements-plain.html \
$(addsuffix -plain.html, $(addprefix sysadmin-, ${SYSADMIN_PARTS})) \
$(addsuffix -plain.html, $(addprefix chapter-, ${CHAPTER_LIST})) \
$(addsuffix .5-plain.html, ${CONFIG_LIST}) \
%-nwdiag.svg: %.nwdiag
nwdiag -T svg $*.nwdiag -o $@;
-sysadmin-%-plain.html: %.adoc
- asciidoc -s -a wiki -a 'leveloffset=-1' ${ADOC_STDARG} -o $@ $*.adoc
+sysadmin-%-plain.html: asciidoc-pve %.adoc
+ ./asciidoc-pve compile-wiki-section -o $@ $*.adoc
-section-%-plain.html: %.adoc
- asciidoc -s -a wiki -a 'leveloffset=-1' ${ADOC_STDARG} -o $@ $*.adoc
+section-%-plain.html: asciidoc-pve %.adoc
+ ./asciidoc-pve compile-wiki-section -o $@ $*.adoc
chapter-sysadmin.html chapter-sysadmin-plain.html: ${SYSADMIN_SOURCES}
asciidoc ${ADOC_STDARG} -a toc -o $@ $*.adoc
chapter-%-plain.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
- asciidoc -s -a wiki ${ADOC_STDARG} -o $@ $*.adoc
+ ./asciidoc-pve compile-wiki-chapter -o $@ $*.adoc
pve-storage-%-plain.html: pve-storage-%.adoc ${PVE_COMMON_DOC_SOURCES}
- asciidoc -s -a wiki -a 'leveloffset=-1' ${ADOC_STDARG} -o $@ pve-storage-$*.adoc
+ ./asciidoc-pve compile-wiki-section -o $@ pve-storage-$*.adoc
%.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
asciidoc ${ADOC_MAN1_HTML_ARGS} -o $@ $*.adoc
make all
clean:
- rm -rf *.tmp.xml *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html chapter-*-plain.html chapter-*.html pve-admin-guide.chunked
+ rm -rf *.tmp.xml *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html chapter-*-plain.html chapter-*.html pve-admin-guide.chunked asciidoc-pve link-refs.json .asciidoc-pve-tmp_*
find . -name '*~' -exec rm {} ';'