From 545525deb7fcfdb112eacd1765ec5fdcb90e39e9 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 31 Jan 2010 09:43:19 -0800 Subject: [PATCH] Tell compass we're under /docs --- doc-src/.compass/config.rb | 4 ++-- doc-src/Rules | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc-src/.compass/config.rb b/doc-src/.compass/config.rb index 004d1d13..437a68dc 100644 --- a/doc-src/.compass/config.rb +++ b/doc-src/.compass/config.rb @@ -2,14 +2,14 @@ # require 'susy' # Set this to the root of your project when deployed: -http_path = "/" +http_path = "/docs" project_path = File.expand_path(File.join(File.dirname(__FILE__), '..')) css_dir = "../docs/stylesheets" sass_dir = "content/stylesheets" images_dir = "assets/images" -http_images_dir = "images" javascripts_dir = "content/javascripts" http_javascripts_dir = "javascripts" http_stylesheets_dir = "stylesheets" +http_images_dir = "images" # To enable relative paths to assets via compass helper functions. Uncomment: # relative_assets = true diff --git a/doc-src/Rules b/doc-src/Rules index 0161186f..bb5a7625 100644 --- a/doc-src/Rules +++ b/doc-src/Rules @@ -1,8 +1,10 @@ #!/usr/bin/env ruby require 'compass' - -Compass.configuration.parse "#{File.dirname(__FILE__)}/.compass/config.rb" + +puts "Compass running from: #{Compass.lib_directory}" + +Compass.add_configuration "#{File.dirname(__FILE__)}/.compass/config.rb" SITE_ROOT = "/docs"