mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-08-06 22:10:50 +00:00
generate man page output file mappings automatically
This commit is contained in:
parent
5377af6a47
commit
cb32a49b5b
1
Makefile
1
Makefile
@ -180,6 +180,7 @@ WIKI_IMPORTS= \
|
|||||||
pve-usbstick-plain.html \
|
pve-usbstick-plain.html \
|
||||||
getting-help-plain.html \
|
getting-help-plain.html \
|
||||||
pve-system-requirements-plain.html \
|
pve-system-requirements-plain.html \
|
||||||
|
system-timesync-plain.html \
|
||||||
$(addsuffix -plain.html, ${SYSADMIN_PARTS}) \
|
$(addsuffix -plain.html, ${SYSADMIN_PARTS}) \
|
||||||
$(addsuffix -plain.html, ${CHAPTER_LIST}) \
|
$(addsuffix -plain.html, ${CHAPTER_LIST}) \
|
||||||
$(addsuffix .5-plain.html, ${CONFIG_LIST}) \
|
$(addsuffix .5-plain.html, ${CONFIG_LIST}) \
|
||||||
|
@ -33,31 +33,6 @@ my $fileinfo = {
|
|||||||
"pmxcfs.adoc" => "chapter-pmxcfs.html",
|
"pmxcfs.adoc" => "chapter-pmxcfs.html",
|
||||||
"pve-faq.adoc" => "chapter-pve-faq.html",
|
"pve-faq.adoc" => "chapter-pve-faq.html",
|
||||||
},
|
},
|
||||||
manvolnum => {
|
|
||||||
"ha-manager.adoc" => "ha-manager.1",
|
|
||||||
"pct.adoc" => "pct.1",
|
|
||||||
"pveam.adoc" => "pveam.1",
|
|
||||||
"pveceph.adoc" => "pveceph.1",
|
|
||||||
"pvecm.adoc" => "pvecm.1",
|
|
||||||
"pveperf.adoc" => "pveperf.1",
|
|
||||||
"pvesm.adoc" => "pvesm.1",
|
|
||||||
"pvesubscription.adoc" => "pvesubscription.1",
|
|
||||||
"pveum.adoc" => "pveum.1",
|
|
||||||
"qm.adoc" => "qm.1",
|
|
||||||
"qmrestore.adoc" => "qmrestore.1",
|
|
||||||
"vzdump.adoc" => "vzdump.1",
|
|
||||||
"datacenter.cfg.adoc" => "datacenter.cfg.5",
|
|
||||||
"pct.conf.adoc" => "pct.conf.5",
|
|
||||||
"qm.conf.adoc" => "qm.conf.5",
|
|
||||||
"pmxcfs.adoc" => "pmxcfs.8",
|
|
||||||
"pvedaemon.adoc" => "pvedaemon.8",
|
|
||||||
"pve-firewall.adoc" => "pve-firewall.8",
|
|
||||||
"pve-ha-crm.adoc" => "pve-ha-crm.8",
|
|
||||||
"pve-ha-lrm.adoc" => "pve-ha-lrm.8",
|
|
||||||
"pveproxy.adoc" => "pveproxy.8",
|
|
||||||
"pvestatd.adoc" => "pvestatd.8",
|
|
||||||
"spiceproxy.adoc" => "spiceproxy.8",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -311,7 +286,13 @@ foreach my $e (@$start_env) {
|
|||||||
if (defined($mansection) && ($mansection == 5)) {
|
if (defined($mansection) && ($mansection == 5)) {
|
||||||
$realfn .= ".$mansection";
|
$realfn .= ".$mansection";
|
||||||
}
|
}
|
||||||
my $realfn = "$realfn-plain.html";
|
$realfn = "$realfn-plain.html";
|
||||||
|
$fileinfo->{outfile}->{$e}->{$fn} = $realfn;
|
||||||
|
} elsif ($e eq 'manvolnum') {
|
||||||
|
my $realfn = $fn;
|
||||||
|
$realfn =~ s/\.adoc$//;
|
||||||
|
die "toplevel file '$fn' is marhes as manual page!" if !$mansection;
|
||||||
|
$realfn .= ".$mansection";
|
||||||
$fileinfo->{outfile}->{$e}->{$fn} = $realfn;
|
$fileinfo->{outfile}->{$e}->{$fn} = $realfn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user