mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
d3525f0769
These line comments point to the original source file for each selector in the compiled scss files, which is very helpful when working with your styles. Allowing them to be rendered in development should make theme development much easier.
28 lines
1004 B
Ruby
28 lines
1004 B
Ruby
$:.unshift File.expand_path("lib", File.dirname(__FILE__)) # For use/testing when no gem is installed
|
|
require "octopress"
|
|
require 'sass-globbing'
|
|
|
|
config = Octopress::Configuration.new.read_configuration
|
|
|
|
project_path = File.dirname(__FILE__)
|
|
project_type = :stand_alone
|
|
|
|
# Publishing paths
|
|
compass_http_path = config[:destination].gsub('public', '')
|
|
http_path = compass_http_path
|
|
http_images_path = "#{http_path}/images"
|
|
http_generated_images_path = "#{http_path}/images"
|
|
http_fonts_path = "#{http_path}/fonts"
|
|
css_dir = "#{config[:destination]}/stylesheets"
|
|
|
|
# Local development paths
|
|
sass_dir = "assets/stylesheets"
|
|
images_dir = "#{config[:source]}/images"
|
|
fonts_dir = "#{config[:source]}/fonts"
|
|
generated_images_dir = "#{config[:source]}/images"
|
|
|
|
unless Octopress.env == 'development'
|
|
line_comments = false
|
|
output_style = :compressed
|
|
end
|