Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

add checking for broken links

  • Loading branch information...
afeld committed Oct 19, 2017
1 parent 82eadb1 commit 05460167929d9d6933cb9854d9aa2033be33ff39
Showing with 65 additions and 0 deletions.
  1. +9 −0 CONTRIBUTING.md
  2. +5 −0 Gemfile
  3. +37 −0 Gemfile.lock
  4. +14 −0 Rakefile
@@ -17,3 +17,12 @@ the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/pub
All contributions to this project will be released under the CC0
dedication. By submitting a pull request, you are agreeing to comply
with this waiver of copyright interest.

## Checking for broken links

Requires Ruby 2.

```sh
bundle
bundle exec rake test
```
@@ -7,3 +7,8 @@ gem 'jekyll', '~> 3.1.0'
group :jekyll_plugins do
gem 'guides_style_18f'
end

group :development do
gem 'html-proofer'
gem 'rake'
end
@@ -1,15 +1,37 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (5.1.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
colorator (0.1)
colored (1.2)
concurrent-ruby (1.0.5)
ethon (0.10.1)
ffi (>= 1.3.0)
ffi (1.9.18)
guides_style_18f (1.0.3)
jekyll
jekyll_pages_api
jekyll_pages_api_search
rouge
sass
html-proofer (3.7.2)
activesupport (>= 4.2, < 6.0)
addressable (~> 2.3)
colored (~> 1.2)
mercenary (~> 0.3.2)
nokogiri (~> 1.7)
parallel (~> 1.3)
typhoeus (~> 0.7)
yell (~> 2.0)
htmlentities (4.3.4)
i18n (0.9.0)
concurrent-ruby (~> 1.0)
jekyll (3.1.6)
colorator (~> 0.1)
jekyll-sass-converter (~> 1.0)
@@ -35,6 +57,13 @@ GEM
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
mercenary (0.3.6)
mini_portile2 (2.2.0)
minitest (5.10.3)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
parallel (1.12.0)
public_suffix (3.0.0)
rake (12.0.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
@@ -45,13 +74,21 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
thread_safe (0.3.6)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.3)
thread_safe (~> 0.1)
yell (2.0.7)

PLATFORMS
ruby

DEPENDENCIES
guides_style_18f
html-proofer
jekyll (~> 3.1.0)
rake

BUNDLED WITH
1.15.4
@@ -0,0 +1,14 @@
require 'html-proofer'

task :test do
sh "bundle exec jekyll build"
options = {
assume_extension: true,
disable_external: true,
url_swap: {
# https://github.com/18F/guides-style/pull/107
/^\#$/ => '#top'
}
}
HTMLProofer.check_directory("./_site", options).run
end

0 comments on commit 0546016

Please sign in to comment.
You can’t perform that action at this time.