-
-
Save HustLion/02166cf3a938cbdeb661 to your computer and use it in GitHub Desktop.
Revisions
-
parkr revised this gist
Jun 5, 2012 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,6 @@ # Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config # Config file placed in ./_sass/config.rb # require 'sass' require 'pathname' -
parkr revised this gist
Jun 5, 2012 . 1 changed file with 10 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,37 +1,31 @@ # # Jekyll Generator for SCSS # # (File paths in this description relative to jekyll project root directory) # Place this file in ./_plugins # Place .scss files in ./_scss # Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config # Config file placed in ./_sass/config.rb # # NOTE: Currently does not function properly # require 'sass' require 'pathname' require 'compass' require 'compass/exec' module Jekyll class CompassGenerator < Generator safe true def generate(site) Dir.chdir File.expand_path('../_sass', File.dirname(__FILE__)) do Compass::Exec::SubCommandUI.new(%w(compile)).run! end end end end -
parkr revised this gist
Jun 5, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,8 @@ # Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config # Config file placed in ./_config/compass.rb # # NOTE: Currently does not function properly # require 'compass' -
parkr revised this gist
Jun 5, 2012 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,13 @@ # # Jekyll Generator for SCSS # # (File paths relative to jekyll project root directory) # Place this file in ./_plugins # Place .scss files in ./_scss # Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config # Config file placed in ./_config/compass.rb # require 'compass' module Jekyll -
parkr created this gist
Jun 5, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ require 'compass' module Jekyll class CompassGenerator < Generator safe true def generate(site) # Read in SCSS files scss_files = Dir[File.expand_path('../_sass/**/*.scss', File.dirname(__FILE__))] puts "scss_files=(#{scss_files})" # Convert options = { :sass_files => scss_files, :configuration_file => File.expand_path('../_config/compass.rb', File.dirname(__FILE__)) } working_path = '../' compass = Compass::Commands::UpdateProject.new(working_path, options) # compile and write output compass.perform end end end