Skip to content

Commit 2dbbb76

Browse files
authored
FIX HTML PROOFER. (#2)
Finally
1 parent d896bb7 commit 2dbbb76

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/build-book.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
name: build-test-deploy-book
22

3-
# Run on pushes and pull requests
4-
on: [push, pull_request]
3+
# Only build PRs, the main branch, and releases. Pushes to branches will only
4+
# be built when a PR is opened. This avoids duplicated buids in PRs comming
5+
# from branches in the origin repository (1 for PR and 1 for push).
6+
# This came from Leo's work with fatiando
7+
on:
8+
pull_request:
9+
push:
10+
branches:
11+
- main
512

613
# This job installs dependencies, build the book, and pushes it to `gh-pages`
714
jobs:
@@ -53,3 +60,13 @@ jobs:
5360
with:
5461
github_token: ${{ secrets.GITHUB_TOKEN }}
5562
publish_dir: ./_build/html
63+
64+
# Test for bad links and ensure alt tags for usability
65+
- name: Check HTML using htmlproofer
66+
uses: chabad360/htmlproofer@master
67+
with:
68+
directory: '_build/html'
69+
arguments: |
70+
--ignore-files "/.+\/_static\/.+/"
71+
72+

0 commit comments

Comments
 (0)