Debian Codegraph @

Rakefile

raw
1 require "rspec/core/rake_task"
2 RSpec::Core::RakeTask.new(:spec)
3 task :default => [:spec]
4
5 desc 'Build the example site at ./site'
6 task :site_build do
7 Dir.chdir('site') do
8 sh 'bundle exec jekyll build'
9 end
10 end
11
12 desc 'Run html-proofer on the built example site'
13 task :htmlproofer => [:site_build] do
14 require 'html-proofer'
15 HTMLProofer.check_directory(
16 './site/_site',
17 disable_external: true,
18 allow_hash_href: true,
19 root_dir: './site/_site',
20 swap_urls: { %r{^https://polyglot\.untra\.io} => '' }
21 ).run
22 end