-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
73 lines (62 loc) · 1.95 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
desc "Publicar en GitHub los apuntes de PL"
task :default do # trabajamos en la rama curso2021
sh "git ci -am '2020-2021' && git push -u origin curso2021:master"
end
desc "sytws: bundle exec jekyll serve --watch"
task :serve do
sh "bundle exec jekyll serve --future --watch --port 8080 --host 0.0.0.0"
end
desc "local: bundle exec jekyll serve --watch"
task :ls do
sh "bundle exec jekyll serve --host 0.0.0.0 --future --watch --port 8080"
end
desc "local serve drafts: bundle exec jekyll serve --drafts --watch --incremental"
task :lsd do
sh "bundle exec jekyll serve --future --drafts --watch --incremental --port 8080"
end
desc "local: pull and bundle exec jekyll serve --watch --incremental"
task :pls do
sh "git pull origin masqter"
sh "bundle exec jekyll serve --future --watch --incremental --port 8080"
end
desc "sytws: pull and bundle exec jekyll serve -H 10.6.128.216 -P 8080"
task :pjs do
sh "git pull origin master"
sh "bundle exec jekyll serve --future -H 10.6.128.216 -P 8080"
end
desc "build"
task :b do
sh "bundle exec jekyll build --future -I -w -d ../website"
end
task :pushhtml do
sh "./scripts/build-and-push.sh"
end
desc "sytws: pull and build"
task :pb do
sh "git pull origin master"
sh "bundle exec jekyll build --future"
end
desc "sytws: pull and build and run with static-server"
task :pbss do
sh "git pull origin master"
sh "bundle exec jekyll build"
sh "cd _site && http-server -p 8080 -a 10.6.128.216"
end
desc "sytws: build and run with http-server -p 8080 -a 10.6.128.216"
task :bss do
sh "bundle exec jekyll build"
sh "cd _site && http-server -p 8080 -a 10.6.128.216"
end
require 'html-proofer'
desc "test links in the build web site"
task :test do
sh "git pull origin master"
sh "bundle exec jekyll build"
options = {
:assume_extension => true,
:disable_external => true,
:empty_alt_ignore => true,
:file_ignore => [ %r{categories} ]
}
HTMLProofer.check_directory("./_site", options).run
end