diff --git a/.github/workflows/link-inspector.yaml b/.github/workflows/link-inspector.yaml new file mode 100644 index 00000000..91de8e30 --- /dev/null +++ b/.github/workflows/link-inspector.yaml @@ -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/checkout@v4.1.7 + + - name: Run linkspector + uses: umbrelladocs/action-linkspector@v1.2.4 + with: + github_token: ${{ secrets.github_token }} + fail_on_error: true + config_file: .linkinspector.yml + filter_mode: nofilter + reporter: github-pr-review diff --git a/.linkspector.yml b/.linkspector.yml new file mode 100644 index 00000000..7d762184 --- /dev/null +++ b/.linkspector.yml @@ -0,0 +1,28 @@ +files: + - *.md + - *.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/*"