$attributes->{manvolnum} = $mansection;
} elsif ($env eq 'default') {
die "$infile: wrong doctype\n" if $doctype != 0;
- $attributes->{toc} = undef;
+ $attributes->{toc2} = undef;
}
if (!defined($outfile)) {
my $data_str = to_json($res_data, { pretty => 1, canonical => 1 });
chomp $data_str;
- print "var pveOnlineHelpInfo = ${data_str};\n";
+ print "const pveOnlineHelpInfo = ${data_str};\n";
} elsif ($clicmd eq 'chapter-table') {
-
+
print '[width="100%",options="header"]' . "\n";
print "|====\n";
print "|Title|Link\n";
-
+
my $filelist = $fileinfo->{outfile}->{default};
foreach my $sourcefile (sort keys %$filelist) {
my $target = $filelist->{$sourcefile};
die "not title for '$sourcefile'";
print "|$title|link:$target\[\]\n";
}
-
+
print "|====\n";
} elsif ($clicmd =~ m/^man([158])page-table$/) {
-
+
my $section = $1;
print '[width="100%",cols="5*d",options="header"]' . "\n";
print "|====\n";
print "|Name 3+|Title|Link\n";
-
+
my $filelist = $fileinfo->{outfile}->{manvolnum};
foreach my $manpage (sort keys %$filelist) {
next if $section ne $fileinfo->{mansection}->{manvolnum}->{$manpage};
my $target = $filelist->{$manpage};
print "|$mantitle 3+|$title|link:$target.html\[$target\]\n";
- }
-
+ }
+
print "|====\n";
} else {