forked from alexandria-sakrejda/reichlab.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (25 loc) · 835 Bytes
/
Rakefile
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
30
31
require 'html-proofer'
task :clean do
File.delete('_data/repositories.yml')
end
desc "Generate a thematic page generator in _plugins"
task :ggen, [:page] do |t, args|
sh "bundle exec ruby ./_scripts/ribosome.rb ./_scripts/theme-gen-gen.rb.dna "\
"#{args["page"]} > ./_plugins/#{args["page"]}.rb"
end
desc "Generate a thematic page in root"
task :tpgen, [:page, :divider] do |t, args|
sh "bundle exec ruby ./_scripts/ribosome.rb ./_scripts/theme-page.html.dna "\
"#{args["page"]} #{args["divider"]} > #{args["page"]}.html"
end
task test: [:build] do
sh 'bundle exec jekyll build'
options = { :assume_extension => true }
HTMLProofer.check_directory('./_site', options).run
end
task :collect do
sh 'bundle exec ruby ./_scripts/collect-repos.rb'
end
task :build do
sh 'bundle exec jekyll build --trace'
end