die "xref: no text for man page link '$blockid'\n" if !$text;
my $section = $fileinfo->{mansection}->{manvolnum}->{$link};
- die "link target is not a manual page" if !defined($section);
+ # die "link target is not a manual page" if !defined($section);
+ if (!defined($section)) {
+ warn "link '$blockid' target '$link' is not a manual page, ignoring\n";
+ return "$text";
+ }
if ($man_target eq 'html') {
debug("scan-extjs $filename");
while(defined(my $line = <$fh>)) {
- if ($line =~ m/\s+onlineHelp:\s*[\'\"](.*?)[\'\"]/) {
+ if ($line =~ m/(?:\s+|Utils\.)onlineHelp(?:Tool)?[:(]\s*[\'\"](.*?)[\'\"]/) {
my $blockid = $1;
my $link = $fileinfo->{blockid_target}->{default}->{$blockid};
die "undefined blockid '$blockid' ($filename, line $.)\n"
my $data_str = to_json($res_data, { pretty => 1, canonical => 1 });
chomp $data_str;
- print "var proxmoxOnlineHelpInfo = ${data_str};\n";
+ print "const proxmoxOnlineHelpInfo = ${data_str};\n";
} elsif ($clicmd eq 'chapter-table') {