Build in a separate content directory to catch bad links
Project: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/commit/e3eb8913 Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/tree/e3eb8913 Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/diff/e3eb8913 Branch: refs/heads/asf-site Commit: e3eb891397122811db0bd7eb76701ade42eef0d1 Parents: a7c71d2 Author: Dan Halperin <[email protected]> Authored: Fri Nov 4 13:30:48 2016 -0700 Committer: Dan Halperin <[email protected]> Committed: Fri Nov 4 17:46:01 2016 -0700 ---------------------------------------------------------------------- Rakefile | 4 +++- _config_test.yml | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/e3eb8913/Rakefile ---------------------------------------------------------------------- diff --git a/Rakefile b/Rakefile index b25b1fb..886442c 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,9 @@ +require 'fileutils' require 'html-proofer' task :test do - sh "bundle exec jekyll build" + FileUtils.rm_rf('./content') + sh "bundle exec jekyll build --config _config.yml,_config_test.yml" HTMLProofer.check_directory("./content", { :allow_hash_href => true, :check_html => true, http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/e3eb8913/_config_test.yml ---------------------------------------------------------------------- diff --git a/_config_test.yml b/_config_test.yml new file mode 100644 index 0000000..607f568 --- /dev/null +++ b/_config_test.yml @@ -0,0 +1,5 @@ +# This config file contains options that override the default config for testing. + +url: "" +baseurl: /subdir +destination: content/subdir
