mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-06-14 13:01:54 +00:00
scan-adoc-refs: extract man page section from .adoc file
This commit is contained in:
parent
7e2fdb3dfd
commit
34d7f485f6
@ -104,6 +104,12 @@ sub register_title {
|
|||||||
die "unable to change title (no doctype)"
|
die "unable to change title (no doctype)"
|
||||||
if !defined($fileinfo->{doctype}->{$env}->{$filename});
|
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 {
|
sub scan_adoc_file {
|
||||||
|
Loading…
Reference in New Issue
Block a user