Skip to content

Commit

Permalink
include routines on the front page
Browse files Browse the repository at this point in the history
this might change in future when we have too many of them
  • Loading branch information
moritz committed Jul 5, 2012
1 parent b92758e commit 9bcbe6b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions htmlify.pl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ($out_dir = 'html')
next if $name ~~ /\s/;
%names{$name}<routine>.push: "/type/$podname.html#$name";
%routines{$name}.push: $podname => $chunk;
%types<routine>{$name} = "/routine/$name";
}
unlink $tempfile;
}
Expand Down Expand Up @@ -127,6 +128,10 @@ ($out_dir = 'html')
%types<type>.sort.map({
pod-item(pod-link(.key, .value))
}),
pod-heading('Routines'),
%types<routine>.sort.map({
pod-item(pod-link(.key, .value))
}),
);
my $file = open :w, "$out_dir/index.html";
$file.print: pod2html($pod);
Expand Down

0 comments on commit 9bcbe6b

Please sign in to comment.