Sha256: bff097225ca3ba52ef63b34a7ea9b905caa9ffbece8dcefecf7333227a28d4cb
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
# These are files which need to be in added to the root of the site directory # Use root assets for files like robots.text or favicon.ico module Octopress module Ink module Assets class DocPageAsset < Asset attr_reader :filename def initialize(plugin, base, file) @root = plugin.assets_path @plugin = plugin @base = base @filename = file @dir = File.dirname(file) @file = File.basename(file) @exists = {} file_check end def page_dir dir == '.' ? '' : dir end def plugin_path File.join(plugin_dir, dir, file) end def source_dir File.join root, base end def path File.join(plugin_dir, page_dir, file) end def page @page ||= Page.new(Plugins.site, source_dir, page_dir, file, {'path'=>plugin.docs_base_path}) end # Add doc page to Jekyll pages # def add if Ink.config['docs_mode'] page.data['layout'] = 'docs' Plugins.site.pages << page end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octopress-ink-1.0.0.alpha.35 | lib/octopress-ink/assets/doc_page.rb |
octopress-ink-1.0.0.alpha.34 | lib/octopress-ink/assets/doc_page.rb |