mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 17:33:05 +08:00
20 lines
437 B
Ruby
Executable File
20 lines
437 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
require "bundler/setup"
|
|
require "html-proofer"
|
|
|
|
# add links to ignore here
|
|
url_ignores = [
|
|
# Installation links require being signed in to GitHub
|
|
%r{https://github.com/apps/.*/installations/new},
|
|
]
|
|
|
|
HTMLProofer::Runner.new(["_site"],
|
|
:type => :directory,
|
|
:url_ignore => url_ignores,
|
|
:file_ignore => [%r{_site/api/}],
|
|
:verbose => !!ENV["VERBOSE"],
|
|
:check_html => true,
|
|
:empty_alt_ignore => true
|
|
).run
|