Skip to content

Commit

Permalink
ci: update markdown-link-check to linkspector (close #779)
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper committed Oct 22, 2024
1 parent dc1a991 commit 413bd5e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/link-inspector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Markdown Links Validation

on: [push, workflow_dispatch]

jobs:
check-link-inspector:
runs-on: ubuntu-22.04
steps:

- name: Checkout this repository
uses: actions/[email protected]

- name: Run linkspector
uses: umbrelladocs/[email protected]
with:
github_token: ${{ secrets.github_token }}
fail_on_error: true
config_file: .linkinspector.yml
filter_mode: nofilter
reporter: github-pr-review
28 changes: 28 additions & 0 deletions .linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
files:

Check warning on line 1 in .linkspector.yml

View workflow job for this annotation

GitHub Actions / yaml-check

1:1 [document-start] missing document start "---"
- *.md

Check failure on line 2 in .linkspector.yml

View workflow job for this annotation

GitHub Actions / yaml-check

2:6 syntax error: expected alphabetic or numeric character, but found '.' (syntax)
- *.mdx

ignorePatterns:
- pattern: "^https://www.linkedin.com.*"
- pattern: ".*\\]$"
- pattern: "^https://www.enterprisetimes.co.uk*"
- pattern: "^https://www.pexels.com*"
- pattern: "^https://www.pngrepo.com"
- pattern: "^https://tdwi.org*"
- pattern: "^https://www.fakepersongenerator.com*"
- pattern: "^https://dash.readme.com*"
- pattern: "^https://cfpland.com*"
- pattern: "^https://n8n.io*"
- pattern: "^https://confs.tech*"
- pattern: "^https://businesswire.com*"
- pattern: "^https://www.tmcnet.com*"
- pattern: "^https://.*kubefirst.dev*"
- pattern: "^http://localhost*"
- pattern: "^https://gitlab.com*"
- pattern: "^https://.*vultr.com*"

replacementPatterns":
- pattern: "{require(\"(*)\").default}"
replacement: "*"
- pattern: "^/img/*"
replacement: "/static/img/*"

0 comments on commit 413bd5e

Please sign in to comment.