-
Notifications
You must be signed in to change notification settings - Fork 170
37 lines (33 loc) · 1.01 KB
/
linkcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build documentation
on:
pull_request:
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
- name: Build the documentation
run: |
pip install -r requirements.txt
sphinx-build docs docs/_build/html
# ref: https://github.com/lycheeverse/lychee-action
# ref: https://github.com/lycheeverse/lychee#commandline-parameters
- name: Link Checker
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
fail: true
# github.com link below: This is a known fail
args: >
docs/_build/**/*.html
--insecure
--max-retries 10
--exclude-link-local
--exclude mailto
--exclude https://github.com/executablebooks/meta/edit/main/docs/contributing.md
jobSummary: true