Skip to content

WHY DON"T YOU LIKE ME HTML PROOFER? 😭 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/build-book.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: build-test-deploy-book

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

# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
Expand Down Expand Up @@ -53,3 +60,13 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html

# Test for bad links and ensure alt tags for usability
- name: Check HTML using htmlproofer
uses: chabad360/htmlproofer@master
with:
directory: '_build/html'
arguments: |
--ignore-files "/.+\/_static\/.+/"