Sha256: 871deadd7d06419a8929ed130585090654cfc8c0cbdb7fbbb50f88e6e88d2e09

Contents?: true

Size: 377 Bytes

Versions: 4

Compression:

Stored size: 377 Bytes

Contents

module Octopress
  module Docs
    class DocsSiteHook < Octopress::Hooks::Site
      def pre_render(site)
        if Octopress.config['docs_mode']
          site.pages.concat Octopress::Docs.pages
        end
      end

      def merge_payload(payload, site)
        if Octopress.config['docs_mode']
          Octopress::Docs.pages_info
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
octopress-docs-0.0.8 lib/octopress-docs/hooks.rb
octopress-docs-0.0.7 lib/octopress-docs/hooks.rb
octopress-docs-0.0.6 lib/octopress-docs/hooks.rb
octopress-docs-0.0.5 lib/octopress-docs/hooks.rb