Use more efficient merging
This commit is contained in:
parent
a721dae0a8
commit
78df4ddb70
|
@ -121,12 +121,10 @@ command :docs do |c|
|
|||
c.option '-u', '--host [HOST]', 'Host to bind to'
|
||||
|
||||
c.action do |args, options|
|
||||
options = normalize_options(options.__hash__)
|
||||
options = options.merge({
|
||||
options = Jekyll.configuration(normalize_options(options.__hash__).merge!({
|
||||
'source' => File.expand_path("../site", File.dirname(__FILE__)),
|
||||
'destination' => File.expand_path("../site/_site", File.dirname(__FILE__))
|
||||
})
|
||||
options = Jekyll.configuration(options)
|
||||
}))
|
||||
puts options
|
||||
Jekyll::Commands::Build.process(options)
|
||||
Jekyll::Commands::Serve.process(options)
|
||||
|
|
Loading…
Reference in New Issue