Fill out some of the intro for the top level of the compass modules.

This commit is contained in:
Chris Eppstein 2010-03-27 23:23:45 -07:00
parent 0c298fe48d
commit 402a009e4d
6 changed files with 26 additions and 4 deletions

View File

@ -9,4 +9,16 @@ meta_description: The Compass Core Framework.
--- ---
- render 'reference' do - render 'reference' do
%p %p
Lorem ipsum dolor sit amet. The compass core framework is a design-agnostic framework that
provides common code that would otherwise be duplicated across
other frameworks and extensions.
%h2 Non Imported Modules
%p
You can import these yourself if you want to use them.
%ul
= render "partials/reference/import", :import => "compass/_layout.sass"
= render "partials/reference/import", :import => "compass/_reset.sass"
= render "partials/reference/import", :import => "compass/_misc.sass"

View File

@ -9,4 +9,5 @@ classnames:
--- ---
- render 'reference' do - render 'reference' do
%p %p
Lorem ipsum dolor sit amet. This module provides tools to help you with page layout.
So far, it's just the stick-footer mixin.

View File

@ -9,4 +9,4 @@ classnames:
--- ---
- render 'reference' do - render 'reference' do
%p %p
Lorem ipsum dolor sit amet. This mixin lets you style an Unobtrusive CSS logo obtrusively.

View File

@ -9,4 +9,5 @@ meta_description: Provides basic mixins for common styling patterns.
--- ---
- render 'reference' do - render 'reference' do
%p %p
Lorem ipsum dolor sit amet. The Compass Utilities module provides some basic mixins
for common styling patterns.

View File

@ -2,6 +2,10 @@
%h1= item[:title] %h1= item[:title]
%p
This file can be imported using:
%code @import #{departialize(item[:stylesheet])}
= yield = yield
= render "partials/reference/examples" = render "partials/reference/examples"

View File

@ -41,6 +41,10 @@ def reference_item(options)
end end
end end
def departialize(path)
path.gsub(%r{(\b|/)_}){|m| m.size > 1 ? "/" : ""}
end
def reference_path(options) def reference_path(options)
if item = reference_item(options) if item = reference_item(options)
rep = item.reps.find { |r| r.name == :default } rep = item.reps.find { |r| r.name == :default }