Skip to content

Commit 13a9ced

Browse files
GarthDBcursoragent
andcommitted
Use regex to ignore all external URLs in HTML Proofer
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent dabc1ad commit 13a9ced

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

Rakefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,17 +203,10 @@ task :html_proofer do
203203
sh "bundle exec jekyll build"
204204
HTMLProofer.check_directory("./_site", {
205205
:ignore_empty_alt => true,
206-
:disable_external => true,
207-
:ignore_urls => [
208-
'http://localhost:4000'
209-
],
206+
:checks => ['Links', 'Images', 'Scripts'],
207+
:ignore_urls => [/^https?:\/\/(?!localhost)/],
210208
:cache => {
211209
:timeframe => { :external => '1d' }
212-
},
213-
:typhoeus => {
214-
:followlocation => true,
215-
:ssl_verifypeer => false,
216-
:headers => { 'User-Agent' => 'html-proofer' }
217210
}
218211
}).run
219212
end

0 commit comments

Comments
 (0)