From 5477d7ad8fc57c446102fa0e33aaa585668488bc Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 6 Jan 2016 09:19:56 -0600 Subject: [PATCH] Sort markdown files first. This allows bringing any readme.md or similar files to the top. --- doc/doxygen/scripts/make_gallery.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/doxygen/scripts/make_gallery.pl b/doc/doxygen/scripts/make_gallery.pl index 62476debd7..ecda2c8609 100644 --- a/doc/doxygen/scripts/make_gallery.pl +++ b/doc/doxygen/scripts/make_gallery.pl @@ -27,7 +27,13 @@ $gallery_underscore =~ s/-/_/; my $gallery_dir = shift(@ARGV); my $author_file = "$gallery_dir/doc/author"; -my @src_files = @ARGV; +# next get the source files. sort all markdown files +# first so that we get to show them first. this makes +# sense because markdown files typically provide +# overview information +my @src_files = grep { $_ =~ m/.*\.(md|markdown)/ } @ARGV; +push @src_files, sort(grep { !($_ =~ m/.*\.(md|markdown)/) }@ARGV); + # read the names of authors; escape '<' and '>' as they # appear in the email address. also trim trailing space and -- 2.39.5