X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=_plugins%2Fmanual.rb;h=2a5d905b9ef590f41e33ac1f515cd1e78e53e773;hb=25ceb163cbcd98fe9c6a28fa13985368e33bed0f;hp=2c5c4b820bcac56ae6b9fa75a5cde0d2fb5d59c6;hpb=4f6b5001b4868661b5a84e441e5e35a4858760c3;p=ardour-manual diff --git a/_plugins/manual.rb b/_plugins/manual.rb index 2c5c4b8..2a5d905 100644 --- a/_plugins/manual.rb +++ b/_plugins/manual.rb @@ -131,7 +131,13 @@ module Manual "
  • #{child[:title]}
  • " end.uniq - "" + "
    +

    This chapter covers the following topics:

    + +
    + " end end end @@ -177,14 +183,14 @@ module Manual current_a = current.split('/').reject(&:empty?) tree = Manual.traverse_data(@@data_tree) do |entry| - + url = entry[:url] url_a = url.split('/').reject(&:empty?) depth = url_a.length is_current, position, level = *process_hierarchy(current_a, url_a) - + # this massively speeds up build time by not including the whole menu tree for each page next if depth > 1 && current_a[0] != url_a[0] @@ -201,7 +207,7 @@ module Manual erb = ::ERB.new <<-HTML
    - <%= entry[:menu_title] %> + <%= entry[:menu_title] %>
    <% if entry[:children].any? %> @@ -221,7 +227,7 @@ module Manual erb = ::ERB.new <<-HTML
    - <%= entry[:menu_title] %> + <%= entry[:menu_title] %>
    @@ -230,9 +236,20 @@ module Manual erb.result(binding) end end + + end - "
    #{tree.join}
    " + "
    #{tree.join}
    + " end