Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update markdown-link-check to linkspector (close #779) #806

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/check-links.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-links:
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
24 changes: 0 additions & 24 deletions .github/workflows/check-links.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
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/*"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# kubefirst Docs

Welcome to the open source repository that powers [the Kubefirst documentation](https://kubefirst.konstruct.io/docs).
Welcome to the open source repository that powers [the Kubefirst documentation](https://kubefirst.konstruect.io/docs).
fharper marked this conversation as resolved.
Show resolved Hide resolved

## Contributing

Expand Down
Loading