Class: Octopress::Docs::DocsSiteHook

Inherits:
Hooks::Site
  • Object
show all
Defined in:
lib/octopress/docs/hooks.rb

Instance Method Summary collapse

Instance Method Details

#merge_payload(payload, site) ⇒ Object



22
23
24
25
26
# File 'lib/octopress/docs/hooks.rb', line 22

def merge_payload(payload, site)
  if Octopress::Docs.enabled?
    Octopress::Docs.pages_info
  end
end

#pre_render(site) ⇒ Object



15
16
17
18
19
20
# File 'lib/octopress/docs/hooks.rb', line 15

def pre_render(site)
  if Octopress::Docs.enabled?
    Octopress.site = site
    site.pages.concat Octopress::Docs.pages
  end
end