Fix jekyll-docs command.
This commit is contained in:
parent
8d7e329a6e
commit
18126d0ebd
|
@ -1,5 +1,4 @@
|
|||
# coding: utf-8
|
||||
require File.expand_path('../../lib/jekyll/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = 'jekyll-docs'
|
||||
|
|
|
@ -20,13 +20,15 @@ module JekyllDocs
|
|||
|
||||
def process(opts)
|
||||
Dir.mktmpdir do |dest_dir|
|
||||
Jekyll::Commands::Serve.process(opts.merge({
|
||||
options = opts.merge({
|
||||
"serving" => true,
|
||||
"watch" => false,
|
||||
"config" => File.expand_path("../../site/_config.yml", __FILE__),
|
||||
"source" => File.expand_path("../../site/", __FILE__),
|
||||
"source" => File.expand_path("../../site", __FILE__),
|
||||
"destination" => dest_dir
|
||||
}))
|
||||
})
|
||||
Jekyll::Commands::Build.process(options)
|
||||
Jekyll::Commands::Serve.process(options)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue