Sha256: d321b3f071edf9705bc3c6b1dc9738ad09f5b1273b778b3fae5903aaca8ff150

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

<%# coding: UTF-8 -%>
## Table of Contents
<% @table.sort.each do |pathname, documents| -%>
<% relative_path = pathname.relative_path_from(Autodoc.configuration.pathname) -%>
* [<%= relative_path %>](<%= relative_path %>)
<% documents.group_by(&:title).each do |title, docs| -%>
<% docs.each_with_index do |document, index| -%>
<% suffix = index == 0 ? "" : "-#{index}" -%>
 * [<%= title %>](<%= "#{relative_path}##{document.identifier}#{suffix}" %>)
<% end -%>
<% end -%>
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
autodoc-0.7.2 lib/autodoc/templates/toc.md.erb
autodoc-0.7.1 lib/autodoc/templates/toc.md.erb
autodoc-0.7.0 lib/autodoc/templates/toc.md.erb
autodoc-0.6.2 lib/autodoc/templates/toc.md.erb
autodoc-0.6.1 lib/autodoc/templates/toc.md.erb