Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Fix the HTMLProofer build failures
Browse files Browse the repository at this point in the history
This reverts commit 22558dd and adopts an alternative approach to the
problem. We continue to *NOT* run the link checker on the API docs (for
the reasons described in the commit messages for 22558dd), but we run
the HTMLProofer on the root of the output directory, so that internal
links can be properly resolved.
  • Loading branch information
jasonrudolph committed Jun 27, 2019
1 parent 4649175 commit 5dfe19b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,13 @@ desc "Run the HTML-Proofer"
task :run_proofer do
require 'html-proofer'

paths_to_proof = Dir.glob('./output/*') - ['./output/api']
paths_to_proof.each do |path|
puts "Running HTML-Proofer on #{path}"

platform_hash_urls = ['#platform-mac', '#platform-windows', '#platform-linux', '#platform-all']
HTMLProofer.check_directory(path, {
:url_ignore => platform_hash_urls,
:typhoeus => { :ssl_verifypeer => false },
:verbose => true,
}).run
end
# Ignore platform switcher hash URLs
platform_hash_urls = ['#platform-mac', '#platform-windows', '#platform-linux', '#platform-all']
HTMLProofer.check_directory("./output", {
:file_ignore => [%r(/output/api/)],
:url_ignore => platform_hash_urls,
:typhoeus => { :ssl_verifypeer => false },
}).run
end

# Detects instances of Issue #204
Expand Down

0 comments on commit 5dfe19b

Please sign in to comment.