File: Rakefile

package info (click to toggle)
ruby-jekyll-multiple-languages 1.7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,376 kB
  • sloc: ruby: 312; javascript: 12; sh: 5; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require "bundler/gem_tasks"
require "html-proofer"


#######################################
# default
#######################################
task :default => [:test]



#######################################
# test
#######################################
# A simple test which buils the example site
# and checks all links are valid.
desc "Run HTMLProofer"
task :test do
  cd "example" do
    sh "bundle exec jekyll clean"
    sh "bundle exec jekyll build"
    options = { empty_alt_ignore: true, enforce_https: true }
    HTMLProofer.check_directory("./_site", options).run

    sh "bundle exec jekyll clean"
    sh "bundle exec jekyll build -c _config.yml,_config_default_locale_in_subfolder.yml"
    HTMLProofer.check_directory("./_site", options).run
  end
end