Skip to content

Commit 5d281b9

Browse files
Switch to using linkspector for validating markdown links (#4643)
* Switch to using linkspector for validating markdown links
1 parent 578fbfb commit 5d281b9

File tree

5 files changed

+21
-24
lines changed

5 files changed

+21
-24
lines changed

.github/linters/.check-markdown-links.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/linters/.linkspector.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
aliveStatusCodes:
2+
- 200
3+
- 406
4+
dirs:
5+
- .
6+
- .github
7+
excludedDirs:
8+
- eng/readme-templates
9+
ignorePatterns:
10+
- pattern: "^https://github.com/dotnet/sdk/tree/main/src/SourceBuild/patches"
11+
- pattern: "^https://dotnetcli.blob.core.windows.net/source-built-artifacts/sdks/"
12+
- pattern: "^https://dotnetcli.blob.core.windows.net/source-built-artifacts/assets/"
13+
- pattern: "^https://www.reddit.com/r/archlinux/comments/cx64r5/the_state_of_net_core_on_arch/"
14+
useGitIgnore: true

.github/linters/.markdown-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ default: true
22
MD013: # line length
33
code_block_line_length: 256
44
heading_line_length: 96
5+
line_length: 96
56
MD033: false # no inline HTML

.github/workflows/check-markdown-links.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Check markdown links
20-
uses: gaurav-nelson/github-action-markdown-link-check@v1
20+
uses: umbrelladocs/action-linkspector@v1
2121
with:
22-
config-file: .github/linters/.check-markdown-links.json
23-
use-quiet-mode: 'yes'
24-
use-verbose-mode: 'no'
22+
config_file: .github/linters/.linkspector.yml
23+
fail_on_error: true
24+
filter_mode: nofilter

Documentation/sourcebuild-in-repos/update-dependencies.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ what can happen is
4141
1. In version 2, Package A is split into Package A1 and Package A2.
4242
1. A downstream repo is never updated to take the split packages.
4343
1. The version 2 source-build succeeds because Package A exists in the
44-
[previously-source-built
45-
archive](build-info.md#Single-version_and_single-RID_build), but no new
46-
version of Package A is produced.
44+
[previously-source-built archive](build-info.md#single-version-and-single-rid-build),
45+
but no new version of Package A is produced.
4746
1. Source-build version 3 fails because Package A no longer exists in the
4847
previously-source-built archive either.
4948

0 commit comments

Comments
 (0)