put the docs in the docs folder.
This commit is contained in:
parent
d0846d76c5
commit
fb998794ae
@ -4,6 +4,8 @@ require 'compass'
|
|||||||
|
|
||||||
Compass.configuration.parse "#{File.dirname(__FILE__)}/.compass/config.rb"
|
Compass.configuration.parse "#{File.dirname(__FILE__)}/.compass/config.rb"
|
||||||
|
|
||||||
|
SITE_ROOT = "/docs"
|
||||||
|
|
||||||
compile '/assets/*/' do
|
compile '/assets/*/' do
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
@ -36,20 +38,20 @@ route '/stylesheets/_*/' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
route '/assets/css/*/' do
|
route '/assets/css/*/' do
|
||||||
"/stylesheets"+item.identifier.chop[11..-1]+"."+item[:extension]
|
"#{SITE_ROOT}/stylesheets"+item.identifier.chop[11..-1]+"."+item[:extension]
|
||||||
end
|
end
|
||||||
|
|
||||||
route '/assets/images/*/' do
|
route '/assets/images/*/' do
|
||||||
item.identifier.chop[7..-1]+"."+item[:extension]
|
SITE_ROOT+item.identifier.chop[7..-1]+"."+item[:extension]
|
||||||
end
|
end
|
||||||
|
|
||||||
route '/assets/javascripts/*/' do
|
route '/assets/javascripts/*/' do
|
||||||
item.identifier.chop[7..-1]+"."+item[:extension]
|
SITE_ROOT+item.identifier.chop[7..-1]+"."+item[:extension]
|
||||||
end
|
end
|
||||||
|
|
||||||
route '/stylesheets/*/' do
|
route '/stylesheets/*/' do
|
||||||
# don't generate a directory like we do for HTML files
|
# don't generate a directory like we do for HTML files
|
||||||
item.identifier.chop + '.css'
|
SITE_ROOT+item.identifier.chop + '.css'
|
||||||
end
|
end
|
||||||
|
|
||||||
route '/examples/*/markup/' do
|
route '/examples/*/markup/' do
|
||||||
@ -61,7 +63,7 @@ route '/examples/*/stylesheet/' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
route '*' do
|
route '*' do
|
||||||
item.identifier + 'index.html'
|
SITE_ROOT+item.identifier + 'index.html'
|
||||||
end
|
end
|
||||||
|
|
||||||
layout '*', :haml, :ugly => true
|
layout '*', :haml, :ugly => true
|
||||||
|
@ -6,4 +6,4 @@ data_sources:
|
|||||||
- items_root: /assets
|
- items_root: /assets
|
||||||
layouts_root: /assets
|
layouts_root: /assets
|
||||||
type: filesystem_assets
|
type: filesystem_assets
|
||||||
output_dir: ../docs
|
output_dir: ..
|
||||||
|
@ -4,11 +4,11 @@
|
|||||||
%title
|
%title
|
||||||
#{@item[:title]} - Compass
|
#{@item[:title]} - Compass
|
||||||
%meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
|
%meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
|
||||||
%link{ :href => "/stylesheets/main.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
%link{ :href => "/docs/stylesheets/main.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
||||||
%link{ :href => "/stylesheets/ui-lightness/jquery-ui-1.7.2.custom.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
%link{ :href => "/docs/stylesheets/ui-lightness/jquery-ui-1.7.2.custom.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
||||||
%script{:src => "/javascripts/jquery-1.3.2.min.js", :type => "text/javascript"}
|
%script{:src => "/docs/javascripts/jquery-1.3.2.min.js", :type => "text/javascript"}
|
||||||
%script{:src => "/javascripts/jquery-ui-1.7.2.custom.min.js", :type => "text/javascript"}
|
%script{:src => "/docs/javascripts/jquery-ui-1.7.2.custom.min.js", :type => "text/javascript"}
|
||||||
%script{:src => "/javascripts/jquery.tipsy.js", :type => "text/javascript"}
|
%script{:src => "/docs/javascripts/jquery.tipsy.js", :type => "text/javascript"}
|
||||||
%body{body_attributes(@item)}
|
%body{body_attributes(@item)}
|
||||||
#container
|
#container
|
||||||
#main
|
#main
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
%title
|
%title
|
||||||
#{@item[:title]} - Compass
|
#{@item[:title]} - Compass
|
||||||
%meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
|
%meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
|
||||||
%link{ :href => "/stylesheets/example.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
%link{ :href => "/docs/stylesheets/example.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
|
||||||
%style{:type => "text/css"}= example_css
|
%style{:type => "text/css"}= example_css
|
||||||
%body{body_attributes(@item)}
|
%body{body_attributes(@item)}
|
||||||
#container
|
#container
|
||||||
|
Loading…
Reference in New Issue
Block a user