Skip to content

Commit

Permalink
BAU: Ignore github links
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwilson committed Apr 26, 2023
1 parent d2453e5 commit 2e741b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
gem 'govuk_tech_docs'

# Include linter to check for dead internal links
gem 'html-proofer'
gem 'html-proofer', '~> 3.19.4'
8 changes: 2 additions & 6 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@
/search/ # Provided by tech-docs gem but has a "broken" link from html-proofer's point of view
],
:url_ignore => [
"https://github.com/alphagov/centralised-security-logging-service"
"https://github.com/alphagov/centralised-security-logging-service",
/https:\/\/github.com\//
]
})

proofer.before_request do |request|
# We get rate-limited by GitHub so pause between checking GitHub links
sleep 2 if request.base_url == "https://github.com/"
end

proofer.run
rescue RuntimeError => e
abort e.to_s
Expand Down

0 comments on commit 2e741b7

Please sign in to comment.