diff --git a/.github/linters/.check-markdown-links.json b/.github/linters/.check-markdown-links.json deleted file mode 100644 index 1b7736d014..0000000000 --- a/.github/linters/.check-markdown-links.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "^https://github.com/dotnet/sdk/tree/main/src/SourceBuild/patches" - }, - { - "pattern": "^https://dotnetcli.blob.core.windows.net/source-built-artifacts/sdks/" - }, - { - "pattern": "^https://dotnetcli.blob.core.windows.net/source-built-artifacts/assets/" - }, - { - "pattern": "^https://www.reddit.com/r/archlinux/comments/cx64r5/the_state_of_net_core_on_arch/" - } - ], - "aliveStatusCodes": [200, 203] -} diff --git a/.github/linters/.linkspector.yml b/.github/linters/.linkspector.yml new file mode 100644 index 0000000000..17f823fd87 --- /dev/null +++ b/.github/linters/.linkspector.yml @@ -0,0 +1,14 @@ +aliveStatusCodes: + - 200 + - 406 +dirs: + - . + - .github +excludedDirs: + - eng/readme-templates +ignorePatterns: + - pattern: "^https://github.com/dotnet/sdk/tree/main/src/SourceBuild/patches" + - pattern: "^https://dotnetcli.blob.core.windows.net/source-built-artifacts/sdks/" + - pattern: "^https://dotnetcli.blob.core.windows.net/source-built-artifacts/assets/" + - pattern: "^https://www.reddit.com/r/archlinux/comments/cx64r5/the_state_of_net_core_on_arch/" +useGitIgnore: true diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index 767b122e56..dcbc943f0d 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -2,4 +2,5 @@ default: true MD013: # line length code_block_line_length: 256 heading_line_length: 96 + line_length: 96 MD033: false # no inline HTML diff --git a/.github/workflows/check-markdown-links.yml b/.github/workflows/check-markdown-links.yml index 225f3ed838..681caf354a 100644 --- a/.github/workflows/check-markdown-links.yml +++ b/.github/workflows/check-markdown-links.yml @@ -17,8 +17,8 @@ jobs: uses: actions/checkout@v4 - name: Check markdown links - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: umbrelladocs/action-linkspector@v1 with: - config-file: .github/linters/.check-markdown-links.json - use-quiet-mode: 'yes' - use-verbose-mode: 'no' + config_file: .github/linters/.linkspector.yml + fail_on_error: true + filter_mode: nofilter diff --git a/Documentation/sourcebuild-in-repos/update-dependencies.md b/Documentation/sourcebuild-in-repos/update-dependencies.md index b5a8414c6e..a1b5fbea96 100644 --- a/Documentation/sourcebuild-in-repos/update-dependencies.md +++ b/Documentation/sourcebuild-in-repos/update-dependencies.md @@ -41,9 +41,8 @@ what can happen is 1. In version 2, Package A is split into Package A1 and Package A2. 1. A downstream repo is never updated to take the split packages. 1. The version 2 source-build succeeds because Package A exists in the - [previously-source-built - archive](build-info.md#Single-version_and_single-RID_build), but no new - version of Package A is produced. + [previously-source-built archive](build-info.md#single-version-and-single-rid-build), + but no new version of Package A is produced. 1. Source-build version 3 fails because Package A no longer exists in the previously-source-built archive either.