diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-03-08 17:43:27 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-03-13 12:27:08 +0000 |
commit | 8e631c9b26abbb481f92a94af93ebe199700db81 (patch) | |
tree | 3d267b8307f8a7d2e8410c786fcdc9f617e38f4c /doc | |
parent | a76474f5c54e74734b5fbe19fe28f36929205922 (diff) | |
download | qt-creator-8e631c9b26abbb481f92a94af93ebe199700db81.tar.gz |
make fixnavi actually work with examples
we reference examples by title, not by file name (as it's unknowable).
Change-Id: I24e2a543138b77e8c6ea60e2aca49ba057c13273
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/fixnavi.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/fixnavi.pl b/doc/fixnavi.pl index 1ddbd4fe1b..eb0f16be57 100755 --- a/doc/fixnavi.pl +++ b/doc/fixnavi.pl @@ -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; |