Commit 8e631c9b authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

make fixnavi actually work with examples

we reference examples by title, not by file name (as it's unknowable).

Change-Id: I24e2a543138b77e8c6ea60e2aca49ba057c13273
Reviewed-by: Riitta-Leena Miettinen's avatarLeena Miettinen <riitta-leena.miettinen@qt.io>
parent a76474f5
......@@ -133,7 +133,8 @@ my %next = ();
my $last = $doctitle;
my $lastpage = $title2page{$last};
for my $title (@toc) {
my $page = $title2page{$title};
my $type = $title2type{$title};
my $page = ($type eq "page") ? $title2page{$title} : "{$title}\n";
defined($page) or die "TOC refers to unknown page/example '$title'.\n";
$next{$last} = $page;
$prev{$title} = $lastpage;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment