Skip to content

Commit

Permalink
More robust lychee configuration
Browse files Browse the repository at this point in the history
Also allow lychee to be executed locally.
  • Loading branch information
joaander committed Oct 4, 2024
1 parent 5fd55e2 commit c109e01
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,7 @@ jobs:
- name: Check links
uses: lycheeverse/lychee-action@2b973e86fc7b1f6b36a93795fe2c9c6ae1118621 # v1.10.0
with:
args: -n
--exclude https://glotzerlab.engin.umich.edu
--exclude 'https://github.com/glotzerlab/row/edit.*'
--exclude doi.org
'./**/*.md'
'./**/*.html'
args: -n .
fail: true

check_licenses:
Expand Down
2 changes: 1 addition & 1 deletion ContributorAgreement.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ you are authorized to sign this contract on behalf of your company (if identifie

Based on the Sun Contributor Agreement - version 1.5.
This document is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License
http://creativecommons.org/licenses/by-sa/3.0/
https://creativecommons.org/licenses/by-sa/3.0/
2 changes: 1 addition & 1 deletion doc/src/developers/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Git identifies every commit you make with your name and e-mail. [Set your identi
to correctly identify your work and set it *identically on all systems* and accounts
where you make commits.

[id]: http://www.git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
[id]: https://www.git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup

## Source code

Expand Down
8 changes: 8 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require_https = true
exclude = [
'https://github.com/glotzerlab/row'
]

# Many of the OnDemand services report 500 when lychee attempts to connect.
# Many sites use cloudflare to prevent bot access. These URLs return 403.
accept = ["200", "429", "500", "403"]

0 comments on commit c109e01

Please sign in to comment.