Skip to content

Commit

Permalink
use linkspector to check links
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 committed Dec 17, 2024
1 parent f031d2a commit d0522a3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
14 changes: 14 additions & 0 deletions .github/config/.linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# https://github.com/UmbrellaDocs/linkspector?tab=readme-ov-file#configuration
dirs:
- .
useGitIgnore: true
aliveStatusCodes:
- 200
- 201
- 204
- 206
- 429
ignorePatterns:
- pattern: '^https://localhost'
- pattern: '^https://github.com/orgs/zaphiro-technologies/'
- pattern: '^https://github.com/zaphiro-technologies/'
19 changes: 6 additions & 13 deletions .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ on:
type: boolean
config-links-path:
required: false
default: '.github/config/md-link-config.json'
default: '.github/config/.linkspector.yml'
type: string
config-lint-path:
default: '.github/config/.markdownlint.json'
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
scripts:
- '.github/config/.markdownlint.json'
- '.github/config/.prettierignore'
- '.github/config/md-link-config.json'
- '.github/config/.linkspector.yml'
- '.gramma.json'
- '.grammarignore'
- 'grammar-check.sh'
Expand Down Expand Up @@ -113,18 +113,11 @@ jobs:
rm -fr */vendor
# Checks the status of hyperlinks in .md and .MD files in verbose mode (the action is case sensitive and .{MD,md})
- name: Check links (.md)
uses: gaurav-nelson/github-action-markdown-link-check@v1
uses: umbrelladocs/action-linkspector@v1
with:
config-file: ${{ inputs.config-link-path || '.github/config/md-link-config.json' }}
use-verbose-mode: 'yes'
use-quiet-mode: 'yes'
- name: Check links (.MD)
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: ${{ inputs.config-link-path || '.github/config/md-link-config.json' }}
use-verbose-mode: 'yes'
use-quiet-mode: 'yes'
file-extension: '.MD'
filter_mode: nofilter
reporter: github-pr-review
config_file: ${{ inputs.config-link-path || '.github/config/.linkspector.yml' }}
markdown-spellchecker:
runs-on: ubuntu-latest
needs: changes
Expand Down

0 comments on commit d0522a3

Please sign in to comment.