File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ your commits and PRs should look like.
61
61
Generate the website with
62
62
63
63
``` sh
64
- bundle exec rake generate
64
+ bundle exec rake build
65
65
```
66
66
67
67
Then start a local web server with
Original file line number Diff line number Diff line change 13
13
HOST = 'www.ruby-lang.org'
14
14
LANGUAGES = %w[ bg de en es fr id it ja ko pl pt ru tr vi zh_cn zh_tw ]
15
15
16
- task :default => [ :generate ]
16
+ task :default => [ :build ]
17
17
18
- desc "Generates the Jekyll site"
19
- task :generate do
18
+ desc "Build the Jekyll site"
19
+ task :build do
20
20
require 'jekyll'
21
21
# workaround for LANG=C environment
22
22
module Jekyll ::Convertible
@@ -29,6 +29,11 @@ task :generate do
29
29
Jekyll ::Site . new ( options ) . process
30
30
end
31
31
32
+ task :generate do
33
+ warn "Warning: The `generate' task is deprecated, use `build' instead."
34
+ Rake ::Task [ :build ] . invoke
35
+ end
36
+
32
37
desc "Serves the Jekyll site locally"
33
38
task :serve do
34
39
sh "rackup config.ru"
@@ -209,7 +214,7 @@ namespace :check do
209
214
end
210
215
211
216
desc 'validate _site markup with validate-website'
212
- task :markup => :generate do
217
+ task :markup => :build do
213
218
require 'jekyll'
214
219
options = Jekyll . configuration
215
220
Dir . chdir ( '_site' ) do
You can’t perform that action at this time.
0 commit comments