-
Notifications
You must be signed in to change notification settings - Fork 8
/
Rakefile
31 lines (25 loc) · 919 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
task :jekyll_build do
sh "bundle exec jekyll build"
sh "cp -r images _output/site/defs/"
sh "cp -r images _output/site/"
end
task :jekyll_build_incremental do
sh "bundle exec jekyll build --incremental"
sh "cp -r images _output/site/defs/"
sh "cp -r images _output/site/"
end
task :kindlegen_images do
sh "cp -r images _output/dict/"
end
task :kindlegen_full => [:kindlegen_images] do
sh "bin/kindlegen _output/dict.opf -c2 -verbose -dont_append_source -o gotdict.mobi"
end
task :kindlegen_quick => [:kindlegen_images] do
sh "bin/kindlegen _output/dict.opf -c0 -verbose -dont_append_source -o gotdict.mobi"
end
task :copy_mobi do
sh "cp _output/gotdict.mobi _output/site/gotdict.mobi"
end
task :build => [:jekyll_build, :kindlegen_full, :copy_mobi]
task :buildnocomp => [:jekyll_build, :kindlegen_quick, :copy_mobi]
task :buildquick => [:jekyll_build_incremental, :kindlegen_quick, :copy_mobi]