Skip to content

Commit

Permalink
Fix docs builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Corrêa de Oliveira committed Oct 29, 2023
1 parent 6a881c0 commit da44797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/make-docs.raku
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sub MAIN (:$filename, :$output = 'API.md') {
!!
find
dir => 'lib',
name => /'.pm6' $/;
name => /'.rakumod' $/;

my ($docsDir, $apiDocsDir) = ($*CWD, '');
unless $docsDir.add('lib').e {
Expand All @@ -27,7 +27,7 @@ sub MAIN (:$filename, :$output = 'API.md') {

for $*SPEC.splitdir( .relative ).skip(1) {
$newFile .= add($_);
$newFile.mkdir unless $newFile.Str.ends-with('.pm6');
$newFile.mkdir unless $newFile.Str.ends-with('.rakumod');
}

print "Processing { $newFile }...";
Expand Down

0 comments on commit da44797

Please sign in to comment.