Last active
December 16, 2015 01:49
-
-
Save dhulihan/5357990 to your computer and use it in GitHub Desktop.
Jekyll Compass Plugin for hooligan theme.
This file contains 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 characters
# _plugins/compass.rb | |
# | |
# Jekyll Generator for SCSS | |
# | |
# (File paths in this description relative to jekyll project root directory) | |
# Place this file in ./_plugins | |
# Config file placed in ./_sass/config.rb | |
# Place .scss files in ./_scss/sass unless changed in config.rb | |
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config | |
# | |
require 'sass' | |
require 'pathname' | |
require 'compass' | |
require 'compass/exec' | |
module Jekyll | |
class CompassGenerator < Generator | |
safe true | |
def generate(site) | |
Dir.chdir File.expand_path('../', File.dirname(__FILE__)) do | |
Compass::Exec::SubCommandUI.new(%w(compile)).run! | |
end | |
end | |
end | |
end |
This file contains 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 characters
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "assets/themes/hooligan/css" | |
sass_dir = "assets/themes/hooligan/_sass" | |
images_dir = "images" | |
javascripts_dir = "javascripts"# Require any additional compass plugins here. |
This file contains 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 characters
source :rubygems | |
gem "compass" | |
gem "sass" | |
gem "jekyll" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment