docs/gen-html-index: Support documents at the toplevel
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 6 Apr 2018 18:09:16 +0000 (19:09 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 12 Apr 2018 15:13:39 +0000 (16:13 +0100)
There are none yet.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
Acked-by: Lars Kurth <lars.kurth@citrix.com>
docs/gen-html-index

index 5b43b42a8cb3368dc372ee0c2cde55db84a0afd8..8258e2bf22f7a4da5ca6131899dc65901a6bf29a 100644 (file)
@@ -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" )