Improves link checking configuration

Enhances the link checking workflow by excluding mail links, limiting concurrency, accepting specific HTTP status codes, and ignoring broken links to improve accuracy and reduce false positives.
This commit is contained in:
Vijay Janapa Reddi
2025-06-01 21:01:57 -04:00
parent fccee9177d
commit 7e5a873fcb
2 changed files with 18 additions and 1 deletions

View File

@@ -12,6 +12,6 @@ jobs:
- name: Check Links
uses: lycheeverse/lychee-action@v1.9.3
with:
args: --verbose --no-progress './contents/core/**/*.qmd' './contents/labs/**/*.qmd'
args: --verbose --no-progress --exclude-mail --max-concurrency 10 --accept 200 --accept 403 --exclude-file .lycheeignore './contents/core/**/*.qmd' './contents/labs/**/*.qmd'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

17
.lycheeignore Normal file
View File

@@ -0,0 +1,17 @@
# Broken YouTube/DOI links
https://www.youtube.com/watch?v=MK0SrxBC1xs
https://doi.org/10.1145/3451349
# Google Slides (unauthorized)
https://docs.google.com/presentation/
# Localhost and internal IPs
http://localhost
http://127.0.0.1
http://192.168.
# Known 404s and content gates
https://www.reuters.com/
https://www.st.com/en/mems-and-sensors/lsm6dsox.html
https://blog.didomi.io/
https://www.usgs.gov/