diff --git a/doc-src/content/frameworks.haml b/doc-src/content/frameworks.haml index 08530864..1a57481d 100644 --- a/doc-src/content/frameworks.haml +++ b/doc-src/content/frameworks.haml @@ -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 diff --git a/doc-src/content/tutorials.haml b/doc-src/content/tutorials.haml new file mode 100644 index 00000000..a8772c29 --- /dev/null +++ b/doc-src/content/tutorials.haml @@ -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. diff --git a/doc-src/content/best_practices.haml b/doc-src/content/tutorials/best_practices.haml similarity index 100% rename from doc-src/content/best_practices.haml rename to doc-src/content/tutorials/best_practices.haml diff --git a/doc-src/content/tutorials/blueprint.haml b/doc-src/content/tutorials/blueprint.haml index bbec29c3..9cff0583 100644 --- a/doc-src/content/tutorials/blueprint.haml +++ b/doc-src/content/tutorials/blueprint.haml @@ -70,4 +70,5 @@ classnames: %li %a(href="#") Blueprint Link Icons - +%pre + TODO: Finish Me! diff --git a/doc-src/layouts/partials/sidebar.haml b/doc-src/layouts/partials/sidebar.haml index ebeb8c15..a20bb925 100644 --- a/doc-src/layouts/partials/sidebar.haml +++ b/doc-src/layouts/partials/sidebar.haml @@ -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 diff --git a/doc-src/lib/default.rb b/doc-src/lib/default.rb index e9c0649d..d51f0fa7 100644 --- a/doc-src/lib/default.rb +++ b/doc-src/lib/default.rb @@ -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{
  • #{prefix}#{crumb}#{suffix}
  • #{child_html}} + contents = unless omit_self + %Q{
  • #{prefix}#{crumb}#{suffix}
  • } + end + %Q{#{contents}#{child_html}} end