Use more efficient merge
This commit is contained in:
parent
fb1003c06f
commit
4b4103cc4a
|
@ -122,11 +122,10 @@ command :docs do |c|
|
||||||
|
|
||||||
c.action do |args, options|
|
c.action do |args, options|
|
||||||
options = normalize_options(options.__hash__)
|
options = normalize_options(options.__hash__)
|
||||||
options = options.merge({
|
options = Jekyll.configuration(options.merge!({
|
||||||
'source' => File.expand_path("../site", File.dirname(__FILE__)),
|
'source' => File.expand_path("../site", File.dirname(__FILE__)),
|
||||||
'destination' => File.expand_path("../site/_site", File.dirname(__FILE__))
|
'destination' => File.expand_path("../site/_site", File.dirname(__FILE__))
|
||||||
})
|
}))
|
||||||
options = Jekyll.configuration(options)
|
|
||||||
puts options
|
puts options
|
||||||
Jekyll::Commands::Build.process(options)
|
Jekyll::Commands::Build.process(options)
|
||||||
Jekyll::Commands::Serve.process(options)
|
Jekyll::Commands::Serve.process(options)
|
||||||
|
|
Loading…
Reference in New Issue