]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Sort markdown files first.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Jan 2016 15:19:56 +0000 (09:19 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Jan 2016 15:19:56 +0000 (09:19 -0600)
This allows bringing any readme.md or similar files to the top.

doc/doxygen/scripts/make_gallery.pl

index 62476debd7988d302f8651fe284a8276eb656b01..ecda2c860947134d77c8d1e2b411fd6262a5e447 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.