Some reorganization of some misc pages.
This commit is contained in:
parent
4aa2cc7a51
commit
31af2778b0
@ -58,7 +58,7 @@ crumb: Plugins and frameworks
|
||||
%a
|
||||
http://developer.yahoo.com/yui/grids/
|
||||
%td
|
||||
%a{:href => "/docs/reference/yui/"}
|
||||
%a{:href => "http://wiki.github.com/chriseppstein/yui-compass-plugin/"}
|
||||
YUI docs
|
||||
%tr
|
||||
%td 960
|
||||
|
9
doc-src/content/tutorials.haml
Normal file
9
doc-src/content/tutorials.haml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Compass Tutorials
|
||||
crumb: Tutorials
|
||||
classnames:
|
||||
- tutorial
|
||||
---
|
||||
%h1 Compass Tutorials
|
||||
|
||||
%p Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@ -70,4 +70,5 @@ classnames:
|
||||
%li
|
||||
%a(href="#") Blueprint Link Icons
|
||||
|
||||
|
||||
%pre
|
||||
TODO: Finish Me!
|
||||
|
@ -1,22 +1,10 @@
|
||||
%h2
|
||||
Compass Documentation
|
||||
%a(href="/docs/") Compass Documentation
|
||||
|
||||
%h3
|
||||
General
|
||||
Tutorials
|
||||
|
||||
%ul
|
||||
%li
|
||||
%a{:href => "/docs/"}
|
||||
Home
|
||||
%li
|
||||
%a{:href => "/docs/best_practices/"}
|
||||
Best practices
|
||||
%ul
|
||||
%li
|
||||
%a{:href => "/docs/tutorials/configurable-variables/"} Configurable Variables
|
||||
%li
|
||||
%a{:href => "/docs/frameworks/"}
|
||||
Working with plugins and frameworks
|
||||
= item_tree(find("/tutorials/"), true)
|
||||
|
||||
%h3
|
||||
Frameworks
|
||||
@ -24,3 +12,10 @@
|
||||
%ul
|
||||
= item_tree(reference_item(:stylesheet => "_compass.sass"))
|
||||
= item_tree(reference_item(:stylesheet => "_blueprint.sass"))
|
||||
|
||||
%h3
|
||||
Misc
|
||||
%ul
|
||||
%li
|
||||
%a{:href => "/docs/frameworks/"}
|
||||
Working with plugins and frameworks
|
||||
|
@ -51,7 +51,11 @@ def default_path(item)
|
||||
item.reps.find{|r| r.name == :default}.path
|
||||
end
|
||||
|
||||
def item_tree(item)
|
||||
def find(identifier)
|
||||
@items.find{|i| i.identifier == identifier}
|
||||
end
|
||||
|
||||
def item_tree(item, omit_self = false)
|
||||
crumb = item[:crumb] || item[:title]
|
||||
child_html = ""
|
||||
if item.children.any?
|
||||
@ -69,7 +73,10 @@ def item_tree(item)
|
||||
prefix = "»"
|
||||
suffix = "«"
|
||||
end
|
||||
%Q{<li><a href="#{default_path(item)}"#{css_class}>#{prefix}#{crumb}#{suffix}</a></li>#{child_html}}
|
||||
contents = unless omit_self
|
||||
%Q{<li><a href="#{default_path(item)}"#{css_class}>#{prefix}#{crumb}#{suffix}</a></li>}
|
||||
end
|
||||
%Q{#{contents}#{child_html}}
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user