diff --git a/lib/rdoc/generator/template/rorvswild/_sidebar_pages.rhtml b/lib/rdoc/generator/template/rorvswild/_sidebar_pages.rhtml index 8aff89d4fb..66f46b6f12 100644 --- a/lib/rdoc/generator/template/rorvswild/_sidebar_pages.rhtml +++ b/lib/rdoc/generator/template/rorvswild/_sidebar_pages.rhtml @@ -1,10 +1,8 @@ <%- simple_files = @files.select { |f| f.text? } %> - +<%- if defined?(current) && current.respond_to?(:page_name) -%> + <%- dir = current.full_name[%r{\A[^/]+(?=/)}] || current.page_name -%> +<%- end -%> <%- unless simple_files.empty? then -%>