Skip to content

Commit

Permalink
sort language index by file name to allow author control of order
Browse files Browse the repository at this point in the history
  • Loading branch information
stmuk committed Jul 6, 2018
1 parent e8f96f1 commit b1f3fbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htmlify.p6
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,12 @@ sub write-index-files() {
]}))
), 'programs');

# sort language index by file name to allow author control of order
say 'Writing html/language.html ...';
spurt 'html/language.html', p2h(pod-with-title(
'Perl 6 Language Documentation',
pod-block("Tutorials, general reference, migration guides and meta pages for the Perl 6 language, in alphabetical order. Scroll down or search 'tutorial' or 'from' to see all of them."),
pod-table($*DR.lookup('language', :by<kind>).sort(*.name).map({[
pod-table($*DR.lookup('language', :by<kind>).map({[
pod-link(.name, .url),
.summary
]}))
Expand Down

0 comments on commit b1f3fbb

Please sign in to comment.