File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ use v6 ;
1
2
unit class DocSite::Generator ;
2
3
3
4
use lib ' lib' ;
@@ -148,6 +149,7 @@ sub viz-hints ($group) {
148
149
149
150
method ! process-language-pod {
150
151
my $ kind = ' Language' ;
152
+
151
153
my @ files = self ! find-pod-files-in($ kind );
152
154
if $ ! sparse {
153
155
@ files = @ files [^ (@ files / $ ! sparse ). ceiling ];
@@ -204,15 +206,15 @@ method !process-one-pod (IO::Path $file, Str $kind) {
204
206
method ! spurt-html-file (IO ::Path $ file , Str $ kind , Str $ html ) {
205
207
my $ dir = IO ::Path. new ( $ * SPEC . catfile( $ ! root , ' html' , $ kind . lc ) );
206
208
unless $ dir ~~ : e {
207
- # $dir.mkdir(0o755);
209
+ $ dir . mkdir (0o755 );
208
210
}
209
211
210
212
IO ::Path. new ( $ * SPEC . catfile( $ dir , $ file . basename . subst ( / '.pod' $ /, ' .html' ) ) )
211
213
. spurt ($ html );
212
214
}
213
215
214
216
method ! run-with-progress ($ items , Routine $ sub , Str $ msg = q { done } ) {
215
- my $ prog = Term::ProgressBar. new ( : count( $ items . elems ) )
217
+ my $ prog = Term::ProgressBar. new ( : count( $ items . elems ), : p )
216
218
if $ ! verbose ;
217
219
218
220
my $ supply = $ items . Supply ;
You can’t perform that action at this time.
0 commit comments