Skip to content

Commit 3e10dbd

Browse files
committed
htmlify: allow the user to skip two more steps
1 parent 0b9c762 commit 3e10dbd

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

htmlify.p6

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,13 @@ sub svg-for-file($file) {
109109

110110
# --sparse=5: only process 1/5th of the files
111111
# mostly useful for performance optimizations, profiling etc.
112-
sub MAIN(Bool :$debug, Bool :$typegraph = False, Int :$sparse) {
112+
sub MAIN(
113+
Bool :$debug,
114+
Bool :$typegraph = False,
115+
Int :$sparse,
116+
Bool :$disambiguation = True,
117+
Bool :$search-file = True,
118+
) {
113119
$*DEBUG = $debug;
114120

115121
say 'Creating html/ subdirectories ...';
@@ -134,8 +140,8 @@ sub MAIN(Bool :$debug, Bool :$typegraph = False, Int :$sparse) {
134140
say 'Composing doc registry ...';
135141
$*DR.compose;
136142

137-
write-disambiguation-files;
138-
write-search-file;
143+
write-disambiguation-files if $disambiguation;
144+
write-search-file if $search-file;
139145
write-index-files;
140146

141147
say 'Writing per-routine files ...';
@@ -153,8 +159,8 @@ sub MAIN(Bool :$debug, Bool :$typegraph = False, Int :$sparse) {
153159
say '';
154160

155161
say 'Processing complete.';
156-
if $sparse {
157-
say "This is a sparse run. DO NOT SYNC WITH doc.perl6.org!";
162+
if $sparse || !$search-file || !$disambiguation {
163+
say "This is a sparse or incomplete run. DO NOT SYNC WITH doc.perl6.org!";
158164
}
159165
}
160166

0 commit comments

Comments
 (0)