Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Created November 16, 2025 12:03
Show Gist options
  • Select an option

  • Save denisdefreyne/39cf5a16ad6251fd817968fb80f4aca9 to your computer and use it in GitHub Desktop.

Select an option

Save denisdefreyne/39cf5a16ad6251fd817968fb80f4aca9 to your computer and use it in GitHub Desktop.
lib/checks/html_proofer.rb
Nanoc::Check.define(:html_proofer) do
res = `bundle exec htmlproofer --root-dir=output --disable-external --no-enforce-https --ignore-missing-alt --directory-index-files=index.html,index.php 2>&1`
if $?.exitstatus != 0
add_issue("html-proofer failed: #{res}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment