Skip to content

Commit a770de8

Browse files
committed
CI: Check html links for doc
1 parent 853878b commit a770de8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,15 @@ jobs:
183183
run: |
184184
set -x
185185
tar -czf linuxcnc-doc.tar.gz -C docs/build html
186+
- name: Check HTML Links
187+
continue-on-error: true
188+
run: |
189+
#Note: -s disables remote link checks. This takes quite a long time but
190+
#it should be done locally from time to time.
191+
#Run after creating tar, so it can not change anything in the artifact
192+
docker run -v $(pwd)/docs/build/html:/test --rm docker.io/wjdp/htmltest -s .
193+
#remove tmp folder from htmltest
194+
rm -r docs/build/html/tmp
186195
- name: Upload linuxcnc-doc artifact
187196
uses: actions/upload-artifact@v7
188197
with:

0 commit comments

Comments
 (0)