Fix jekyll-docs command.

This commit is contained in:
Parker Moore 2016-02-19 16:57:21 -08:00
parent 8d7e329a6e
commit 18126d0ebd
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,4 @@
# coding: utf-8 # coding: utf-8
require File.expand_path('../../lib/jekyll/version', __FILE__)
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = 'jekyll-docs' spec.name = 'jekyll-docs'

View File

@ -20,13 +20,15 @@ module JekyllDocs
def process(opts) def process(opts)
Dir.mktmpdir do |dest_dir| Dir.mktmpdir do |dest_dir|
Jekyll::Commands::Serve.process(opts.merge({ options = opts.merge({
"serving" => true, "serving" => true,
"watch" => false, "watch" => false,
"config" => File.expand_path("../../site/_config.yml", __FILE__), "config" => File.expand_path("../../site/_config.yml", __FILE__),
"source" => File.expand_path("../../site/", __FILE__), "source" => File.expand_path("../../site", __FILE__),
"destination" => dest_dir "destination" => dest_dir
})) })
Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options)
end end
end end
end end