5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-03-23 06:50:05 +03:00

scan-adoc-refs: extract man page section from .adoc file

This commit is contained in:
Dietmar Maurer 2016-10-10 17:48:44 +02:00
parent 7e2fdb3dfd
commit 34d7f485f6

View File

@ -104,6 +104,12 @@ sub register_title {
die "unable to change title (no doctype)"
if !defined($fileinfo->{doctype}->{$env}->{$filename});
}
if (defined($doctype) && ($env eq 'manvolnum') && ($doctype == 0)) {
if ($title =~ m/.*\(([1-8])\)\s*$/) {
$fileinfo->{mansection}->{$env}->{$filename} = $1;
}
}
}
sub scan_adoc_file {