scripts/mdlinkcheck: fix the ../ handling in file links
Follow-up to 62515e8e9d
Closes #15797
This commit is contained in:
parent
250d613763
commit
28dd14aafe
4
.github/workflows/checkdocs.yml
vendored
4
.github/workflows/checkdocs.yml
vendored
@ -14,7 +14,8 @@ name: Docs
|
||||
- '*/ci'
|
||||
paths:
|
||||
- '.github/workflows/checkdocs.yml'
|
||||
- '.github/scripts/**'
|
||||
- '.github/scripts/mdlinkcheck'
|
||||
- '/scripts/**'
|
||||
- '**.md'
|
||||
- 'docs/*'
|
||||
pull_request:
|
||||
@ -23,6 +24,7 @@ name: Docs
|
||||
paths:
|
||||
- '.github/workflows/checkdocs.yml'
|
||||
- '.github/scripts/**'
|
||||
- '.github/scripts/mdlinkcheck'
|
||||
- '**.md'
|
||||
- 'docs/*'
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ sub storelink {
|
||||
$dir =~ s:([^/]*\z)::;
|
||||
|
||||
while($link =~ s:^\.\.\/::) {
|
||||
$dir =~ s:^([^/]*)/::;
|
||||
$dir =~ s:([^/]*)\/\z::;
|
||||
}
|
||||
|
||||
$flink{"./$dir$link"} .= "$f:$line ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user