lib/octopress-docs/hooks.rb in octopress-docs-0.0.11 vs lib/octopress-docs/hooks.rb in octopress-docs-0.0.12

- old
+ new

@@ -1,15 +1,10 @@ module Octopress module Docs class DocsSiteHook < Octopress::Hooks::Site def post_read(site) - if ENV['OCTOPRESS_DOCS'] && Octopress.site.nil? - Octopress.site = site - end - end - - def pre_render(site) if ENV['OCTOPRESS_DOCS'] + Octopress.site = site site.pages.concat Octopress::Docs.pages end end def merge_payload(payload, site)