Skip to content

Commit 1bad6af

Browse files
committed
trying something with lychee
1 parent dd147d1 commit 1bad6af

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Run lychee
4848
uses: lycheeverse/[email protected]
4949
with:
50-
args: "--base . --cache --max-cache-age 30d --max-concurrency 1 --require-https --timeout 5 --exclude-path 'assets/home.html' --exclude 'academic.oup.com/bioinformatics/' --exclude 'useast.ensembl.org' --exclude 'doi.org' --exclude 'academic.oup.com/nar' --exclude 'gnu.org' --exclude 'anaconda.org' --exclude 'fonts.gstatic.com' --exclude 'www.microsoft.com/en-us/microsoft-365/onedrive/online-cloud-storage' --exclude-path 404.html -- './**/*.html' './**/*.css'"
50+
args: "--base . --cache --config lychee.toml -- './**/*.html' './**/*.css'"
5151
fail: true
5252
- name: Save lychee cache
5353
uses: actions/cache/save@v3

lychee.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# lychee.toml
2+
3+
# Optional: where to store cache
4+
cache = true
5+
max_cache_age = "30d"
6+
max_concurrency = 1
7+
require_https = true
8+
timeout = 5
9+
10+
# Exclude full URLs (exact matches)
11+
exclude = [
12+
"https://scholar.google.com",
13+
"https://academic.oup.com/bioinformatics/",
14+
"https://useast.ensembl.org",
15+
"https://doi.org",
16+
"https://academic.oup.com/nar",
17+
"https://www.gnu.org",
18+
"https://anaconda.org",
19+
"https://fonts.gstatic.com",
20+
"https://www.microsoft.com/en-us/microsoft-365/onedrive/online-cloud-storage",
21+
]
22+
23+
# Exclude files or paths from checking
24+
exclude_path = [
25+
"assets/home.html",
26+
"404.html"
27+
]

0 commit comments

Comments
 (0)