mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-03-11 17:49:25 -05:00
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:
2
.github/workflows/link-check.yml
vendored
2
.github/workflows/link-check.yml
vendored
@@ -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
17
.lycheeignore
Normal 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/
|
||||
Reference in New Issue
Block a user