Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Add rake task to test external links
Browse files Browse the repository at this point in the history
  • Loading branch information
dshevtsov committed Oct 21, 2019
1 parent fa55887 commit 7eb1781
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ namespace :test do
desc 'Build devdocs and check for broken links'
task links: %w[build links_no_build]

# Run htmlproofer to check for broken external links
desc 'Check the existing _site for broken EXTERNAL links'
task :external_links do
puts 'Testing external links'
system 'bundle exec htmlproofer _site/ --external_only'
end

desc 'Check the entire _site for broken links and invalid HTML'
task :html do
puts 'Checking links with html-proofer...'.magenta
Expand Down

0 comments on commit 7eb1781

Please sign in to comment.