Skip to content

Commit 8f29683

Browse files
committed
Rename 'generate' task to 'build'
Use 'rake build' to generate site, similar to 'jekyll build'.
1 parent 7360132 commit 8f29683

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ your commits and PRs should look like.
6161
Generate the website with
6262

6363
``` sh
64-
bundle exec rake generate
64+
bundle exec rake build
6565
```
6666

6767
Then start a local web server with

Rakefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ end
1313
HOST = 'www.ruby-lang.org'
1414
LANGUAGES = %w[bg de en es fr id it ja ko pl pt ru tr vi zh_cn zh_tw]
1515

16-
task :default => [:generate]
16+
task :default => [:build]
1717

18-
desc "Generates the Jekyll site"
19-
task :generate do
18+
desc "Build the Jekyll site"
19+
task :build do
2020
require 'jekyll'
2121
# workaround for LANG=C environment
2222
module Jekyll::Convertible
@@ -29,6 +29,11 @@ task :generate do
2929
Jekyll::Site.new(options).process
3030
end
3131

32+
task :generate do
33+
warn "Warning: The `generate' task is deprecated, use `build' instead."
34+
Rake::Task[:build].invoke
35+
end
36+
3237
desc "Serves the Jekyll site locally"
3338
task :serve do
3439
sh "rackup config.ru"
@@ -209,7 +214,7 @@ namespace :check do
209214
end
210215

211216
desc 'validate _site markup with validate-website'
212-
task :markup => :generate do
217+
task :markup => :build do
213218
require 'jekyll'
214219
options = Jekyll.configuration
215220
Dir.chdir('_site') do

0 commit comments

Comments
 (0)