-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
45 lines (38 loc) · 1.32 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
task :build do
sh "bundle exec jekyll build"
end
task :test do
# HTMLProofer.check_directory("./_site").run
# disable_external = false
# HTMLProofer.check_directory("./_site", opts).run
# HTMLProofer.check_directory("./_site", {
HTMLProofer.check_directories(["./_site"], {
# :alt_ignore => [/.*/],
# :disable_external => false,
:file_ignore => [/.*ipynb_.*html/],
:url_ignore => [/.*github.com\/qiuwch\/unrealcv/],
# :empty_alt_ignore => true,
# :checks_to_ignore => ["ImageCheck"],
}).run
end
task :s do
sh "bundle exec jekyll s"
end
task :testsub do
require 'html-proofer'
sh "bundle exec jekyll build -d ./_unrealcv/unrealcv/ --config ./_config_subfolder.yml"
HTMLProofer.check_directories(["./_unrealcv"], {
:file_ignore => [/.*ipynb_.*html/],
:url_ignore => [/.*github.com\/qiuwch\/unrealcv/],
}).run
end
task :buildsub do
sh "bundle exec jekyll build -d ./_unrealcv/unrealcv/ --config ./_config_subfolder.yml"
end
task :syncsub do
sh "bundle exec jekyll build -d ./_unrealcv/unrealcv/ --config ./_config_subfolder.yml"
sh "rsync -rav _unrealcv/unrealcv/ weichaoqiu.com:/home/qiuwch/weichaoqiu.com/unrealcv/"
end
task :updateipynb do
sh "jupyter-nbconvert --to html --output _includes/ipynb-generate-images.html _code/unrealcv/client/examples/generate-images.ipynb"
end