Skip to content

Commit f0de8f5

Browse files
committed
Use html-proofer instead of spidr
1 parent 374f20e commit f0de8f5

File tree

4 files changed

+53
-38
lines changed

4 files changed

+53
-38
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ gem "rouge"
66

77
group :development do
88
gem "minitest"
9-
gem "spidr", "~> 0.6"
9+
gem "html-proofer"
1010
gem "validate-website", "~> 1.6"
1111
end

Gemfile.lock

+37-1
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,45 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
Ascii85 (1.1.0)
45
addressable (2.8.4)
56
public_suffix (>= 2.0.2, < 6.0)
7+
afm (0.2.2)
8+
async (2.5.0)
9+
console (~> 1.10)
10+
io-event (~> 1.1)
11+
timers (~> 4.1)
612
colorator (1.1.0)
713
concurrent-ruby (1.2.2)
14+
console (1.16.2)
15+
fiber-local
816
crass (1.0.6)
917
em-websocket (0.5.3)
1018
eventmachine (>= 0.12.9)
1119
http_parser.rb (~> 0)
20+
ethon (0.16.0)
21+
ffi (>= 1.15.0)
1222
eventmachine (1.2.7)
1323
ffi (1.15.5)
24+
fiber-local (1.0.0)
1425
forwardable-extended (2.6.0)
1526
google-protobuf (3.22.3)
1627
google-protobuf (3.22.3-arm64-darwin)
1728
google-protobuf (3.22.3-x86_64-linux)
29+
hashery (2.1.2)
30+
html-proofer (5.0.7)
31+
addressable (~> 2.3)
32+
async (~> 2.1)
33+
nokogiri (~> 1.13)
34+
pdf-reader (~> 2.11)
35+
rainbow (~> 3.0)
36+
typhoeus (~> 1.3)
37+
yell (~> 2.0)
38+
zeitwerk (~> 2.5)
1839
http_parser.rb (0.8.0)
1940
i18n (1.12.0)
2041
concurrent-ruby (~> 1.0)
42+
io-event (1.1.7)
2143
jekyll (4.3.2)
2244
addressable (~> 2.4)
2345
colorator (~> 1.0)
@@ -60,14 +82,22 @@ GEM
6082
paint (2.3.0)
6183
pathutil (0.16.2)
6284
forwardable-extended (~> 2.6)
85+
pdf-reader (2.11.0)
86+
Ascii85 (~> 1.0)
87+
afm (~> 0.2.1)
88+
hashery (~> 2.0)
89+
ruby-rc4
90+
ttfunk
6391
public_suffix (5.0.1)
6492
racc (1.6.2)
93+
rainbow (3.1.1)
6594
rake (13.0.6)
6695
rb-fsevent (0.11.2)
6796
rb-inotify (0.10.1)
6897
ffi (~> 1.0)
6998
rexml (3.2.5)
7099
rouge (4.1.0)
100+
ruby-rc4 (0.1.5)
71101
safe_yaml (1.0.5)
72102
sass-embedded (1.62.0)
73103
google-protobuf (~> 3.21)
@@ -83,6 +113,10 @@ GEM
83113
unicode-display_width (>= 1.1.1, < 3)
84114
tidy_ffi (1.0.1)
85115
ffi (~> 1.2)
116+
timers (4.3.5)
117+
ttfunk (1.7.0)
118+
typhoeus (1.4.0)
119+
ethon (>= 0.9.0)
86120
unicode-display_width (2.4.2)
87121
validate-website (1.12.0)
88122
crass (~> 1)
@@ -98,18 +132,20 @@ GEM
98132
nokogiri (~> 1.6)
99133
rexml (~> 3.2)
100134
webrick (1.8.1)
135+
yell (2.2.2)
136+
zeitwerk (2.6.7)
101137

102138
PLATFORMS
103139
arm64-darwin-22
104140
ruby
105141
x86_64-linux
106142

107143
DEPENDENCIES
144+
html-proofer
108145
jekyll
109146
minitest
110147
rake
111148
rouge
112-
spidr (~> 0.6)
113149
validate-website (~> 1.6)
114150

115151
BUNDLED WITH

Rakefile

+15-5
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,22 @@ end
8989

9090
namespace :check do
9191

92-
localport = 9292
93-
94-
desc "Check for broken internal links on http://localhost:#{localport}/"
92+
desc "Check for broken internal links"
9593
task :links do
96-
require_relative "lib/link_checker"
97-
LinkChecker.new.check(localport: localport, languages: LANGUAGES)
94+
require "html-proofer"
95+
options = {
96+
checks: [
97+
'Links',
98+
'Images',
99+
'Scripts',
100+
],
101+
ignore_empty_alt: true,
102+
ignore_missing_alt: true,
103+
check_external_hash: false,
104+
check_internal_hash: false,
105+
}
106+
107+
HTMLProofer.check_directory('_site', options).run
98108
end
99109

100110
desc "Validate _site markup with validate-website"

lib/link_checker.rb

-31
This file was deleted.

0 commit comments

Comments
 (0)