Class: Octopress::AssetPipeline::Plugin
- Inherits:
-
Ink::Plugin
- Object
- Ink::Plugin
- Octopress::AssetPipeline::Plugin
- Defined in:
- lib/octopress-asset-pipeline.rb
Instance Method Summary collapse
Instance Method Details
#add_files ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/octopress-asset-pipeline.rb', line 28 def add_files if Octopress.site.pages.empty? && Octopress.site.posts.empty? Octopress.site.read_directories end add_static_files add_page_files add_stylesheets add_javascripts end |
#config(*args) ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/octopress-asset-pipeline.rb', line 39 def config(*args) @config ||= begin c = Ink.configuration['asset_pipeline'] { 'stylesheets_dir' => ['stylesheets', 'css'], 'javascripts_dir' => ['javascripts', 'js'] }.merge(c).merge({ 'disable' => {} }) end end |
#register ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/octopress-asset-pipeline.rb', line 14 def register reset # Tell Jekyll to read static files and pages # This is necessary when Jekyll isn't being asked to build a site, # like when a user runs the list command to list assets # if Octopress::Docs.enabled? add_docs end if Octopress::Ink.enabled? add_files end end |