olddoc.git about / heads / tags olddoc - old-fashioned RDoc generator(s)
blob 890b0ccd5fd05fc1bd6e05b8db15ac968edb6795 390 bytes (raw) $ git show v1.8.0:lib/oldweb/_sidebar_table_of_contents.rhtml # shows this blob on the CLI
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<% comment = current.respond_to?(:comment_location) ? current.comment_location : current.comment table = current.parse(comment).table_of_contents if table.length > 1 %><% table.each_with_index do |heading, i| next if heading.level > @old_cfg['toc_max'] %><a href="#<%= heading.label(current) %>"><%= i == 0 ? "top" : heading.plain_html %></a> <% end %><br /><% end %>
git clone https://80x24.org/olddoc.git