Skip to content

Commit

Permalink
Fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser committed Apr 1, 2024
1 parent b45f1dd commit 1cdf7d2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/htmlproofer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
require "typhoeus"

begin
directories = ['../_site']
status_codes = [0, 200, 301, 403, 429, 503, 999]
extensions = ['.html']
directories = ['../_build/html']
ignore_files = ['./_build/html/_static/webpack-macros.html']
status_codes = [0, 200, 301, 403, 410, 429, 503, 999]
merge_base = %x(git merge-base origin/main HEAD).chomp
diffable_files = %x(git diff -z --name-only --diff-filter=AC #{merge_base}).split("\0")
diffable_files = diffable_files.select do |filename|
Expand All @@ -19,9 +21,11 @@
# Create a file to capture errors
errors = StringIO.new
HTMLProofer.check_directory(
"./_site",
"./_build/html",
{
extensions: extensions,
ignore_urls: diffable_files,
ignore_files: ignore_files,
ignore_status_codes: status_codes,
cache: {
timeframe: {
Expand Down

0 comments on commit 1cdf7d2

Please sign in to comment.