Sha256: 15641eada7118d2dae7ccd1996add30c812a0789dfd63d53c509fecd3afc3a64

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 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

6 entries across 6 versions & 1 rubygems

Version Path
autodoc-0.8.0 lib/autodoc/templates/toc.md.erb
autodoc-0.7.7 lib/autodoc/templates/toc.md.erb
autodoc-0.7.6 lib/autodoc/templates/toc.md.erb
autodoc-0.7.5 lib/autodoc/templates/toc.md.erb
autodoc-0.7.4 lib/autodoc/templates/toc.md.erb
autodoc-0.7.3 lib/autodoc/templates/toc.md.erb