Skip to content

Commit 3f26e7b

Browse files
committed
Use url-munge from Pod::Htmlify in htmlify.p6
1 parent 71799fb commit 3f26e7b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

htmlify.p6

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,14 @@ use Perl6::TypeGraph;
1313
use Perl6::TypeGraph::Viz;
1414
use Perl6::Documentable::Registry;
1515
use Pod::Convenience;
16+
use Pod::Htmlify;
1617

1718
my $*DEBUG = False;
1819

1920
my $type-graph;
2021
my %methods-by-type;
2122
my %*POD2HTML-CALLBACKS;
2223

23-
sub url-munge($_) {
24-
return $_ if m{^ <[a..z]>+ '://'};
25-
return "/type/{uri_escape $_}" if m/^<[A..Z]>/;
26-
return "/routine/{uri_escape $_}" if m/^<[a..z]>|^<-alpha>*$/;
27-
# poor man's <identifier>
28-
if m/ ^ '&'( \w <[[\w'-]>* ) $/ {
29-
return "/routine/{uri_escape $0}";
30-
}
31-
return $_;
32-
}
33-
3424
# TODO: Generate menulist automatically
3525
my @menu =
3626
('language','' ) => (),

0 commit comments

Comments
 (0)