Skip to content

Commit

Permalink
Change markdown link checker to lychee
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Jan 8, 2025
1 parent 827e5e2 commit 26e5264
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 75 deletions.
51 changes: 0 additions & 51 deletions .github/scripts/markdown-link-check-config.json

This file was deleted.

17 changes: 0 additions & 17 deletions .github/scripts/markdown-link-check-with-retry.sh

This file was deleted.

6 changes: 6 additions & 0 deletions .lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include-fragments = true

accept = ["200..=299", "401", "403"]

# better to be safe and avoid failures
max-retries = 6
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ table-check:

.PHONY: markdown-link-check
markdown-link-check:
@if ! npm ls markdown-link-check; then npm install; fi
find . -type f \
-name '*.md' \
-not -path './node_modules/*' \
-not -path './elections/*/governance-committee-election.md' \
-not -path './elections/*/governance-committee-candidates.md' \
| xargs .github/scripts/markdown-link-check-with-retry.sh
docker run --rm \
--mount 'type=bind,source=$(PWD),target=/home/repo' \
lycheeverse/lychee \

Check warning on line 22 in Makefile

View workflow job for this annotation

GitHub Actions / spelling-check

Unknown word (lycheeverse)
--config home/repo/.lychee.toml \
--root-dir /home/repo \
--exclude-path home/repo/elections/ \
home/repo

# This target runs markdown-toc on all files that contain
# a pair of comments <!-- toc --> and <!-- tocstop -->.
Expand Down

0 comments on commit 26e5264

Please sign in to comment.