lib/octopress-docs/command.rb in octopress-docs-0.0.10 vs lib/octopress-docs/command.rb in octopress-docs-0.0.11

- old
+ new

@@ -25,23 +25,19 @@ require "octopress-docs/page" require "octopress-docs/doc" require "octopress-docs/hooks" require "octopress-docs/liquid_filters" - Octopress::Docs.docs_mode = true + ENV['OCTOPRESS_DOCS'] = true options = init_octopress_docs(options) options["port"] ||= '4444' options["serving"] = true options = Jekyll.configuration Jekyll::Utils.symbolize_hash_keys(options) Jekyll::Commands::Build.process(options) Jekyll::Commands::Serve.process(options) end def self.init_octopress_docs(options) - Octopress.config({ - 'config-file' => File.join(site_dir, '_octopress.yml'), - 'override' => { 'docs_mode' => true } - }) require_plugins options['source'] = site_dir options['destination'] = File.join(site_dir, '_site') options end