diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..b3ab200072 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: ruby +rvm: + - 2.5.3 + +before_script: + - gem install html-proofer + +# Assume bundler is being used, therefore +# the `install` step will run `bundle install` by default. +script: + - bundle exec jekyll build + - bundle exec htmlproofer ./_site --assume-extension --allow-hash-href + +env: + global: + - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer + +cache: bundler # caching bundler gem packages will speed up build \ No newline at end of file diff --git a/Gemfile b/Gemfile index d6fed7efaa..eef36123dd 100644 --- a/Gemfile +++ b/Gemfile @@ -30,4 +30,5 @@ gem "wdm", "~> 0.1.0" if Gem.win_platform? group :development, :test do gem "pry" + gem "html-proofer" end \ No newline at end of file diff --git a/_config.yml b/_config.yml index 4d98e8efcd..a90ab5b6dc 100644 --- a/_config.yml +++ b/_config.yml @@ -19,13 +19,9 @@ defaults: - scope: path: "*/*" values: - root: "../../.." - - scope: - path: "*/*/*" - values: - root: "../../../.." + root: "../.." -default_root: "../../.." +default_root: "../.." collections_dir: docs collections: diff --git a/_layouts/default.html b/_layouts/default.html index 34dd1b4487..159a40d8ff 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -38,6 +38,7 @@ common-js: +

[{% include link.html url='' %}]

{{ content }}