Fix docs server options override

Override the source and destination before passing it along to the
configuration
This commit is contained in:
Christopher Nicotera 2013-08-21 23:53:30 -04:00
parent a3b63662ba
commit a721dae0a8
1 changed files with 2 additions and 1 deletions

View File

@ -122,10 +122,11 @@ command :docs do |c|
c.action do |args, options|
options = normalize_options(options.__hash__)
options = Jekyll.configuration(options).merge({
options = options.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)