Some reorganization of some misc pages.
This commit is contained in:
parent
4aa2cc7a51
commit
31af2778b0
@ -58,7 +58,7 @@ crumb: Plugins and frameworks
|
|||||||
%a
|
%a
|
||||||
http://developer.yahoo.com/yui/grids/
|
http://developer.yahoo.com/yui/grids/
|
||||||
%td
|
%td
|
||||||
%a{:href => "/docs/reference/yui/"}
|
%a{:href => "http://wiki.github.com/chriseppstein/yui-compass-plugin/"}
|
||||||
YUI docs
|
YUI docs
|
||||||
%tr
|
%tr
|
||||||
%td 960
|
%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
|
%li
|
||||||
%a(href="#") Blueprint Link Icons
|
%a(href="#") Blueprint Link Icons
|
||||||
|
|
||||||
|
%pre
|
||||||
|
TODO: Finish Me!
|
||||||
|
@ -1,22 +1,10 @@
|
|||||||
%h2
|
%h2
|
||||||
Compass Documentation
|
%a(href="/docs/") Compass Documentation
|
||||||
|
|
||||||
%h3
|
%h3
|
||||||
General
|
Tutorials
|
||||||
|
|
||||||
%ul
|
= item_tree(find("/tutorials/"), true)
|
||||||
%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
|
|
||||||
|
|
||||||
%h3
|
%h3
|
||||||
Frameworks
|
Frameworks
|
||||||
@ -24,3 +12,10 @@
|
|||||||
%ul
|
%ul
|
||||||
= item_tree(reference_item(:stylesheet => "_compass.sass"))
|
= item_tree(reference_item(:stylesheet => "_compass.sass"))
|
||||||
= item_tree(reference_item(:stylesheet => "_blueprint.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
|
item.reps.find{|r| r.name == :default}.path
|
||||||
end
|
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]
|
crumb = item[:crumb] || item[:title]
|
||||||
child_html = ""
|
child_html = ""
|
||||||
if item.children.any?
|
if item.children.any?
|
||||||
@ -69,7 +73,10 @@ def item_tree(item)
|
|||||||
prefix = "»"
|
prefix = "»"
|
||||||
suffix = "«"
|
suffix = "«"
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user