Skip to content

Commit 3c75228

Browse files
authored
Move Lychee configuration to configuration file, replace lyheeignore and fix remaining false errors. (#95)
1 parent fa51faf commit 3c75228

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ jobs:
6363
with:
6464
# nice to check a few specific root-level markdown files (README.md etc) for valid links,
6565
# but the main thing to check is the rendered website (in the `open-source` directory)
66-
args: "--accept 200,429 --no-progress --verbose --github-token ${{ secrets.GITHUB_TOKEN }} -- README.md CONTRIBUTING.md open-source/"
66+
args: "--github-token ${{ secrets.GITHUB_TOKEN }} -- README.md CONTRIBUTING.md open-source/"
6767
fail: true
6868
jobSummary: true

.lycheeignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

lychee.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
accept = [200, 403, 415, 429]
2+
verbose = "info"
3+
no_progress = true
4+
exclude = [
5+
'(?x).*profiles.ucl.ac.uk.*/thumbnail', # People may not have a profile image.
6+
'(?x).*github-readme-stats.vercel.app.*', # Returns 503 for some reason
7+
'(?x).rdr.ucl.ac.uk/articles/*', # Article does exist but sometimes returns strange codes: 202, 403...
8+
'(?x).*127.0.0.1.*', # This is a local address
9+
'(?x).*liveuclac.sharepoint.com/sites/*', # SharePoint pages will need UCL credentials.
10+
]

0 commit comments

Comments
 (0)