Skip to content

Commit

Permalink
Merge pull request #196 from microbiomedata/186-website-file-tree-con…
Browse files Browse the repository at this point in the history
…tains-broken-links-35

Configure Lychee to ignore `localhost` and Rancher URLs
  • Loading branch information
eecavanna authored Feb 21, 2025
2 parents 20f9d04 + 44b949b commit 57359fa
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,24 @@ jobs:
id: lychee
uses: lycheeverse/lychee-action@v2
with:
# Note: The `--format` option refers to the format of the report, not the documents being scanned.
#
# Notes:
# - The `>` symbol tells the YAML parser to replace newlines with whitespace. This way, we don't
# have to terminate each line with a `\` character to escape the invisible newline character.
# - The `--format` option refers to the format of the report, not the documents being scanned.
# - The `--exclude-loopback` option makes it so Lychee does not check "localhost" URLs.
# - The `--exclude <PATTERN>` option can be used multiple times.
#
# Reference: https://github.com/lycheeverse/lychee#commandline-parameters
args: --base '_build/html' --verbose --no-progress --format markdown '_build/html/**/*.html'
#
args: >
--base '_build/html'
--exclude-loopback
--exclude '^https://rancher2.spin.nersc.gov'
--verbose
--no-progress
--format markdown
'_build/html/**/*.html'
debug: true
output: ./lychee/out.md
fail: false
Expand Down

0 comments on commit 57359fa

Please sign in to comment.