Skip to content

Commit 3ee4240

Browse files
authored
Merge pull request #9 from AstarVienna/hb/uselinkspector
Use linkspector
2 parents 2a382c8 + e7e5f49 commit 3ee4240

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/markdown_link_check.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
name: Check Markdown links
2+
# See https://github.com/UmbrellaDocs/linkspector
23

34
on:
45
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
12+
# Allows you to run this workflow manually from the Actions tab.
13+
workflow_dispatch:
14+
515
schedule:
616
- # Run every day at 5:00 UTC
717
- cron: "0 5 * * *"
@@ -14,4 +24,12 @@ jobs:
1424
runs-on: ubuntu-latest
1525
steps:
1626
- uses: actions/checkout@master
17-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
27+
- uses: actions/setup-node@v4
28+
- name: Install dependencies
29+
run: npm install -g @umbrelladocs/linkspector
30+
- name: Check links
31+
run: |
32+
# Generate default configuration file if it doesn't exist.
33+
if [ ! -f .linkspector.yml ] ; then printf "dirs:\n - ./\n" > .linkspector.yml ; fi
34+
# Run the check.
35+
linkspector check

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ These quotes highlight the goal and status of this repository.
1616
[arghwhat](https://news.ycombinator.com/item?id=36354464)
1717

1818
> The problem with DevOps is not really how it is practiced, but how it is named. DevOps is a bucket that a bunch of things are thrown into, and everybody thinks the thing they threw in is DevOps with the others being mislabelled.
19+
20+
## Testing links
21+
22+
This link is valid, but cannot be validated with markdown-link-checker, but
23+
can be validated with linkspector: https://doi.org/10.1117/12.2559784

0 commit comments

Comments
 (0)