mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
7bdab0e65c
- Added Guard for file watching - Configs can be automatically reloaded - Static asset changes do not trigger Jekyll build - CommonJS modular js support proved by stich-rb - Javascript is concatenated and uglified - Environment variables toggle uglify and fingerprinting - New Jekyll plugin config_tag - New Jekyll plugin javascript_assets_tag - Added theme specific configurations - Custome Jekyll Guard to the rescue - Install, Generate, Watch, and Preview work with Guard now. - Now configs are no longer tracked by Octopress, only theme defauts are. - Console messages can be colorized. - misc config reorganization and improvements
25 lines
976 B
Ruby
25 lines
976 B
Ruby
$:.unshift File.expand_path("lib", File.dirname(__FILE__)) # For use/testing when no gem is installed
|
|
require "octopress"
|
|
|
|
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"
|
|
|
|
line_comments = false
|
|
output_style = :compressed unless Octopress.env == 'development'
|