Skip to content

Commit

Permalink
Merge pull request magento#5816 from magento/ds_add-rake-http-links
Browse files Browse the repository at this point in the history
Add rake task to test external links
  • Loading branch information
dshevtsov authored Oct 25, 2019
2 parents acdd553 + b816a24 commit 3f2b6cb
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 3f2b6cb

Please sign in to comment.