Skip to content

Commit c616ed1

Browse files
committed
revert Text::VimColour use
1 parent 4112cad commit c616ed1

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ install:
1515
- panda install LWP::Simple
1616
- panda install Algorithm::Soundex
1717
- panda install DBIish
18-
- panda install Text::VimColour
18+
# - panda install Text::VimColour
1919

2020
script:
2121
- make test

lib/Pod/Htmlify.pm6

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use URI::Escape;
44
use Pod::To::HTML;
55
use Pod::Convenience;
66
use Perl6::Examples;
7-
use Text::VimColour;
7+
#use Text::VimColour;
88

99
class Website is export {
1010
has $.categories is rw;
@@ -189,17 +189,17 @@ class Website is export {
189189
method p2h($pod) {
190190
my $head = slurp 'template/head.html';
191191
my $footer = footer-html;
192-
my %*POD2HTML-CALLBACKS = code => sub (:$node, :&default) {
193-
try {
194-
my $v = Text::VimColour.new(lang => 'perl6', code => "{$node.contents.join}");
195-
return $v.html;
196-
}
197-
CATCH {
198-
default {
199-
return "<pre>" ~ $node.contents.join ~ "</pre>";
200-
}
201-
}
202-
};
192+
#my %*POD2HTML-CALLBACKS = code => sub (:$node, :&default) {
193+
# try {
194+
# my $v = Text::VimColour.new(lang => 'perl6', code => "{$node.contents.join}");
195+
# return $v.html;
196+
# }
197+
# CATCH {
198+
# default {
199+
# return "<pre>" ~ $node.contents.join ~ "</pre>";
200+
# }
201+
# }
202+
#};
203203
pod2html $pod,
204204
:url(&url),
205205
:$head,

0 commit comments

Comments
 (0)