Skip to content

Commit

Permalink
Fixes URLs, thanks to @randyl, refs #2924
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Jul 30, 2019
1 parent c26adf4 commit 86559aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions util/issue-with-all-pod6.p6 100644 → 100755
Expand Up @@ -7,8 +7,12 @@ my @docs = qx/git ls-files | grep "\.pod6"/.lines;
for @docs -> $d {
my $repo-path = S[doc] = '/perl6/doc/blob/master/doc' with $d;
my $web-path = S[doc] = 'https://docs.perl6.org' with $d;
if $web-path ~~ /Type/ {
my @fragments = $web-path.split("/Type/");
$web-path = @fragments[0] ~ "/type/" ~ @fragments[1].trans( ['/'] => ['::'] );
}
my $doc-name = $d.split("/")[*-1].split(".")[0];
$web-path .= trans( [ "Language", "Type", "Programs", ".pod6" ] =>
[ "language", "type", "programs", ''] );
$web-path .= trans( [ "Language", "Programs", ".pod6" ] =>
[ "language", "programs", ''] );
say "* [ ] $doc-name [file]($repo-path), [generated]($web-path)";
}

0 comments on commit 86559aa

Please sign in to comment.