Skip to content

Commit

Permalink
Support repo links via page rename for index to README
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Oct 29, 2021
1 parent 3391132 commit 930a78b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/adjust-spec-pages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ ()
$linkTitle = 'FaaS' if $ARGV =~ /faas-metrics.md$/;
$linkTitle = 'HTTP' if $ARGV =~ /http-metrics.md$/;
print "linkTitle: $linkTitle\n" if $linkTitle;
if ($ARGV =~ /_index.md$/) {
print "path_base_for_github_subdir:\n";
print " from: content/en/docs/specification/(.*?)/_index.md\n";
print " to: \$1/README.md\n";
}
print "---\n";
}

Expand Down

0 comments on commit 930a78b

Please sign in to comment.