X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=pve-doc-generator.mk;h=0f972022d4b20a3b1b0bc1bbfd30a576bc015350;hp=281f8829e38401efd55e244f289469b398a0df2d;hb=82141a788dc9b43c0c57f03d14b9348193e5863a;hpb=96f2beeb13548b0a3f86b62548809cea3be488c3 diff --git a/pve-doc-generator.mk b/pve-doc-generator.mk index 281f882..0f97202 100644 --- a/pve-doc-generator.mk +++ b/pve-doc-generator.mk @@ -1,5 +1,5 @@ # also update debian/changelog -DOCRELEASE=4.1 +DOCRELEASE=4.3 DGDIR?=/usr/share/pve-doc-generator @@ -33,14 +33,34 @@ PVESM_MAN1_SOURCES= \ pve-storage-iscsi.adoc \ pve-storage-iscsidirect.adoc \ pve-storage-lvm.adoc \ + pve-storage-lvmthin.adoc \ pve-storage-nfs.adoc \ pve-storage-rbd.adoc \ pve-storage-zfspool.adoc \ ${PVE_COMMON_DOC_SOURCES} +VZDUMP_MAN1_SOURCES= \ + vzdump.adoc \ + vzdump.1-synopsis.adoc \ + vzdump.conf.5-opts.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +PVESUBSCRIPTION_MAN1_SOURCES= \ + pvesubscription.adoc \ + pvesubscription.1-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +PVECEPH_MAN1_SOURCES= \ + pveceph.adoc \ + pveceph.1-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + PCT_MAN1_SOURCES= \ pct.adoc \ pct.1-synopsis.adoc \ + pct.conf.5-opts.adoc \ + pct-network-opts.adoc \ + pct-mountpoint-opts.adoc \ ${PVE_COMMON_DOC_SOURCES} PCT_CONF_MAN5_SOURCES= \ @@ -56,6 +76,7 @@ DATACENTER_CONF_MAN5_SOURCES= \ QM_MAN1_SOURCES= \ qm.adoc \ qm.1-synopsis.adoc \ + qm.conf.5-opts.adoc \ ${PVE_COMMON_DOC_SOURCES} QM_CONF_MAN5_SOURCES= \ @@ -73,19 +94,24 @@ PVEUM_MAN1_SOURCES= \ pveum.1-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} -HA_MANAGER_MAN1_SOURCES= \ - ha-manager.adoc \ - ha-manager.1-synopsis.adoc \ +PVEAM_MAN1_SOURCES= \ + pveam.adoc \ + pveam.1-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} -PVE_HA_CRM_MAN8_SOURCES= \ - pve-ha-crm.adoc \ - pve-ha-crm.8-synopsis.adoc \ +HA_MANAGER_MAN1_SOURCES= \ + ha-manager.adoc \ + ha-manager.1-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} -PVE_HA_LRM_MAN8_SOURCES= \ - pve-ha-lrm.adoc \ - pve-ha-lrm.8-synopsis.adoc \ +PVE_HA_CRM_MAN8_SOURCES= \ + pve-ha-crm.adoc \ + pve-ha-crm.8-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +PVE_HA_LRM_MAN8_SOURCES= \ + pve-ha-lrm.adoc \ + pve-ha-lrm.8-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} PVESTATD_MAN8_SOURCES= \ @@ -103,6 +129,11 @@ PVEPROXY_MAN8_SOURCES= \ pveproxy.8-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} +SPICEPROXY_MAN8_SOURCES= \ + spiceproxy.adoc \ + spiceproxy.8-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + PMXCFS_MAN8_SOURCES= \ pmxcfs.adoc \ pmxcfs.8-cli.adoc \ @@ -134,65 +165,107 @@ ifneq (${DGDIR},.) mv $@.tmp $@ endif -A2X_MAN_COMMON_OPTIONS=-a docinfo1 -a "manversion=Release ${DOCRELEASE}" -f manpage -A2X_MAN1_OPTIONS=${A2X_MAN_COMMON_OPTIONS} -a "manvolnum=1" -A2X_MAN5_OPTIONS=${A2X_MAN_COMMON_OPTIONS} -a "manvolnum=5" -A2X_MAN8_OPTIONS=${A2X_MAN_COMMON_OPTIONS} -a "manvolnum=8" +# asciidoc /etc/asciidoc/docbook-xsl/manpage.xsl skip REFERENCES section +# like footnotes, so we cannot use a2x. We use xmlto instead. +#A2MAN_COMMON=a2x -v -k -a docinfo1 -a "manversion=Release ${DOCRELEASE}" -f manpage +#A2MAN1=${A2MAN_COMMON} -a "manvolnum=1" +#A2MAN5=${A2MAN_COMMON} -a "manvolnum=5" +#A2MAN8=${A2MAN_COMMON} -a "manvolnum=8" + +A2MAN_COMMON=asciidoc -dmanpage -bdocbook -a docinfo1 + +define A2MAN1 +${A2MAN_COMMON} -a "manvolnum=1" -o $1.tmp.xml $1.adoc +xmlto -v man $1.tmp.xml +@rm -f $1.tmp.xml +endef + +define A2MAN5 +${A2MAN_COMMON} -a "manvolnum=5" -o $1.tmp.xml $1.adoc +xmlto -v man $1.tmp.xml +@rm -f $1.tmp.xml +endef + +define A2MAN8 +${A2MAN_COMMON} -a "manvolnum=8" -o $1.tmp.xml $1.adoc +xmlto -v man $1.tmp.xml +@rm -f $1.tmp.xml +endef pve-firewall.8: ${PVE_FIREWALL_MAN8_SOURCES} - a2x ${A2X_MAN8_OPTIONS} pve-firewall.adoc + $(call A2MAN8,pve-firewall) test -n "$${NOVIEW}" || man -l $@ pvesm.1: ${PVESM_MAN1_SOURCES} - a2x ${A2X_MAN1_OPTIONS} pvesm.adoc + $(call A2MAN1,pvesm) + test -n "$${NOVIEW}" || man -l $@ + +pveceph.1: ${PVECEPH_MAN1_SOURCES} + $(call A2MAN1,pveceph) test -n "$${NOVIEW}" || man -l $@ pct.1: ${PCT_MAN1_SOURCES} - a2x ${A2X_MAN1_OPTIONS} pct.adoc + $(call A2MAN1,pct) + test -n "$${NOVIEW}" || man -l $@ + +vzdump.1: ${VZDUMP_MAN1_SOURCES} + $(call A2MAN1,vzdump) + test -n "$${NOVIEW}" || man -l $@ + +pvesubscription.1: ${PVESUBSCRIPTION_MAN1_SOURCES} + $(call A2MAN1,pvesubscription) test -n "$${NOVIEW}" || man -l $@ qm.1: ${QM_MAN1_SOURCES} - a2x ${A2X_MAN1_OPTIONS} qm.adoc + $(call A2MAN1,qm) test -n "$${NOVIEW}" || man -l $@ qmrestore.1: ${QMRESTORE_MAN1_SOURCES} - a2x ${A2X_MAN1_OPTIONS} qmrestore.adoc + $(call A2MAN1,qmrestore) test -n "$${NOVIEW}" || man -l $@ pvecm.1: ${PVECM_MAN1_SOURCES} - a2x ${A2X_MAN1_OPTIONS} pvecm.adoc + $(call A2MAN1,pvecm) test -n "$${NOVIEW}" || man -l $@ pveum.1: ${PVEUM_MAN1_SOURCES} - a2x ${A2X_MAN1_OPTIONS} pveum.adoc + $(call A2MAN1,pveum) + test -n "$${NOVIEW}" || man -l $@ + +pveam.1: ${PVEAM_MAN1_SOURCES} + $(call A2MAN1,pveam) test -n "$${NOVIEW}" || man -l $@ ha-manager.1: ${HA_MANAGER_MAN1_SOURCES} - a2x ${A2X_MAN1_OPTIONS} ha-manager.adoc + $(call A2MAN1,ha-manager) test -n "$${NOVIEW}" || man -l $@ pve-ha-crm.8: ${PVE_HA_CRM_MAN8_SOURCES} - a2x ${A2X_MAN8_OPTIONS} manpage pve-ha-crm.adoc + $(call A2MAN8,pve-ha-crm) test -n "$${NOVIEW}" || man -l $@ pve-ha-lrm.8: ${PVE_HA_LRM_MAN8_SOURCES} - a2x ${A2X_MAN8_OPTIONS} pve-ha-lrm.adoc + $(call A2MAN8,pve-ha-lrm) test -n "$${NOVIEW}" || man -l $@ pvestatd.8: ${PVESTATD_MAN8_SOURCES} - a2x ${A2X_MAN8_OPTIONS} pvestatd.adoc + $(call A2MAN8,pvestatd) test -n "$${NOVIEW}" || man -l $@ pvedaemon.8: ${PVEDAEMON_MAN8_SOURCES} - a2x ${A2X_MAN8_OPTIONS} pvedaemon.adoc + $(call A2MAN8,pvedaemon) test -n "$${NOVIEW}" || man -l $@ pveproxy.8: ${PVEPROXY_MAN8_SOURCES} - a2x ${A2X_MAN8_OPTIONS} pveproxy.adoc + $(call A2MAN8,pveproxy) + test -n "$${NOVIEW}" || man -l $@ + +spiceproxy.8: ${SPICEPROXY_MAN8_SOURCES} + $(call A2MAN8,spiceproxy) test -n "$${NOVIEW}" || man -l $@ pmxcfs.8: ${PMXCFS_MAN8_SOURCES} - a2x ${A2X_MAN8_OPTIONS} pmxcfs.adoc + $(call A2MAN8,pmxcfs) test -n "$${NOVIEW}" || man -l $@ qm.conf.5: ${QM_CONF_MAN5_SOURCES} @@ -202,9 +275,9 @@ pct.conf.5: ${PCT_CONF_MAN5_SOURCES} datacenter.cfg.5: ${DATACENTER_CONF_MAN5_SOURCES} %.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES} - a2x ${A2X_MAN5_OPTIONS} $*.adoc + $(call A2MAN5,$*) test -n "$${NOVIEW}" || man -l $@ .PHONY: cleanup-docgen cleanup-docgen: - rm -f *.1 *.5 *.8 *.adoc attributes.txt docinfo.xml + rm -f *.tmp.xml *.1 *.5 *.8 *.adoc attributes.txt docinfo.xml