Skip to content

Commit ec01950

Browse files
authored
Switch to checking for dead links in the docs/CI HTML via Lychee (#733)
1 parent 62bb2f3 commit ec01950

File tree

4 files changed

+23
-45
lines changed

4 files changed

+23
-45
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
4848
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
4949
50+
- name: Linkcheck - Lychee
51+
uses: lycheeverse/lychee-action@v2
52+
with:
53+
args: -c .lychee.toml build/install/docs/mfc/
54+
fail: false
55+
5056
- name: Publish Documentation
5157
if: github.repository == 'MFlowCode/MFC' && github.ref == 'refs/heads/master' && ( github.event_name == 'cron' || github.event_name == 'workflow_dispatch' )
5258
run: |

.github/workflows/links.yml

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

.link_config.json

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

.lychee.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Maximum number of allowed retries before a link is declared dead.
2+
max_retries = 5
3+
4+
# Don't show interactive progress bar while checking links.
5+
no_progress = true
6+
7+
# Website timeout from connect to response finished.
8+
timeout = 20
9+
10+
# Minimum wait time in seconds between retries of failed requests.
11+
retry_wait_time = 4
12+
13+
# Comma-separated list of accepted status codes for valid links.
14+
# accept = ["200", "206", "403", "429"]
15+
accept = ["200", "429"]
16+
17+
verbose = "error"

0 commit comments

Comments
 (0)