This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
paths :
6
6
- docs/**
7
+ - book.toml
8
+ - .github/workflows/docs-pr.yaml
7
9
8
10
jobs :
9
11
pages :
32
34
path : book
33
35
# We'll only use this in a workflow_run, then we're done with it
34
36
retention-days : 1
37
+
38
+ link-check :
39
+ name : Check links in documentation
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - uses : actions/checkout@v2
43
+
44
+ - name : Setup mdbook
45
+ uses : peaceiris/actions-mdbook@adeb05db28a0c0004681db83893d56c0388ea9ea # v1.2.0
46
+ with :
47
+ mdbook-version : ' 0.4.17'
48
+
49
+ - name : Setup htmltest
50
+ run : |
51
+ wget https://github.com/wjdp/htmltest/releases/download/v0.17.0/htmltest_0.17.0_linux_amd64.tar.gz
52
+ echo '775c597ee74899d6002cd2d93076f897f4ba68686bceabe2e5d72e84c57bc0fb htmltest_0.17.0_linux_amd64.tar.gz' | sha256sum -c
53
+ tar zxf htmltest_0.17.0_linux_amd64.tar.gz
54
+
55
+ - name : Test links with htmltest
56
+ # Build the book with `./` as the site URL (to make checks on 404.html possible)
57
+ # Then run htmltest (without checking external links since that involves the network and is slow).
58
+ run : |
59
+ MDBOOK_OUTPUT__HTML__SITE_URL="./" mdbook build
60
+ ./htmltest book --skip-external
Original file line number Diff line number Diff line change
1
+ Use `htmltest` to check links in the Synapse documentation.
You can’t perform that action at this time.
0 commit comments