diff --git a/doc-src/layouts/partials/sidebar/container.haml b/doc-src/layouts/partials/sidebar/container.haml new file mode 100644 index 00000000..71611ba4 --- /dev/null +++ b/doc-src/layouts/partials/sidebar/container.haml @@ -0,0 +1 @@ +%ul= @contents \ No newline at end of file diff --git a/doc-src/layouts/partials/sidebar/heading.haml b/doc-src/layouts/partials/sidebar/heading.haml new file mode 100644 index 00000000..d03ee8a3 --- /dev/null +++ b/doc-src/layouts/partials/sidebar/heading.haml @@ -0,0 +1,3 @@ +%li{:class => ("selected" if @selected)} + - haml_tag(@heading) do + %a{:href => default_path(@current_item), :class => ("selected" if @selected)}= @crumb diff --git a/doc-src/layouts/partials/sidebar/item.haml b/doc-src/layouts/partials/sidebar/item.haml new file mode 100644 index 00000000..3fcd05f6 --- /dev/null +++ b/doc-src/layouts/partials/sidebar/item.haml @@ -0,0 +1,2 @@ +%li{:class => ("selected" if @selected)} + %a{:href => default_path(@current_item), :class => ("selected" if @selected)}= @crumb diff --git a/doc-src/lib/default.rb b/doc-src/lib/default.rb index 79f5fc8a..4e9ec540 100644 --- a/doc-src/lib/default.rb +++ b/doc-src/lib/default.rb @@ -69,7 +69,6 @@ def item_tree(item, options = {}) child_html = "" if options.fetch(:depth,1) > 0 if item.children.any? - child_html << "