Skip to content

Commit 82e55ca

Browse files
update lychee config
1 parent 5064d06 commit 82e55ca

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.github/workflows/mdbook.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ jobs:
4747
uses: lycheeverse/lychee-action@v2
4848
with:
4949
fail: true
50-
args: ./docs/book
50+
args: >-
51+
--verbose
52+
--no-progress
53+
--config docs/lychee.toml
54+
--root-dir "${{ github.workspace }}/docs/book"
55+
./docs/book
5156
- name: Upload artifact
5257
uses: actions/upload-pages-artifact@v3
5358
with:

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
book
2+
.lycheecache

docs/lychee.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# configuration of lychee link checker
2+
# https://lychee.cli.rs/usage/config/
3+
4+
# enable link checking to avoid rate limiting when doing many runs locally in sequence
5+
cache = true
6+
7+
# skip over URLs matching these regex
8+
exclude = [
9+
# skip DocDB, we want to link to internal documents
10+
'^https://projects-docdb\.fnal\.gov',
11+
# this is a private repository
12+
'^https://github\.com/LDMX-Software/(ldmx-sw-scripts|ldmx-analysis)',
13+
# this is timing out for some reason
14+
'^http://www\.adobe\.com'
15+
]
16+
17+
# don't check these files
18+
exclude_path = [
19+
# skip the "print.html" page generated by mdbook because it just repeats any previous errors
20+
'book/print.html'
21+
]

0 commit comments

Comments
 (0)