From: Ian Jackson Date: Fri, 6 Apr 2018 18:09:16 +0000 (+0100) Subject: docs/gen-html-index: Support documents at the toplevel X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~195 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1e4a834a8f5d970e68cff6d9c16710194bc46537;p=xen.git docs/gen-html-index: Support documents at the toplevel There are none yet. Signed-off-by: Ian Jackson Release-acked-by: Juergen Gross Acked-by: Lars Kurth --- diff --git a/docs/gen-html-index b/docs/gen-html-index index 5b43b42a8c..8258e2bf22 100644 --- a/docs/gen-html-index +++ b/docs/gen-html-index @@ -137,6 +137,10 @@ sub dirs($) return @dirs; } +foreach my $of (grep { !m{/} } @docs) { + $top .= make_link($of,''); +} + foreach my $od (sort { $a cmp $b } uniq map { dirs($_) } @docs) { my @d = (grep /^\Q$od\E/, @docs); if ( @d == 1 and $d[0] eq "$od/index.html" )