Sha256: 922b57ecf47faad57e368d1460a111f1d24005e95cdf718a9f28b45cd1a87631

Contents?: true

Size: 501 Bytes

Versions: 11

Compression:

Stored size: 501 Bytes

Contents

<%- comment = if current.respond_to? :comment_location then
               current.comment_location
             else
               current.comment
             end
   table = current.parse(comment).table_of_contents

   if table.length > 1 then %>
<div class="nav-section">
  <h3>Table of Contents</h3>

  <ul class="link-list" role="directory">
<%-   table.each do |heading| -%>
    <li><a href="#<%= heading.label current %>"><%= heading.plain_html %></a>
<%-   end -%>
  </ul>
</div>
<%- end -%>

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
rdoc-6.4.1.1 lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
rdoc-6.3.4.1 lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
ric-0.14.2 vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
ric-0.14.1 vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
ric-0.14.0 vendor/bundle/ruby/2.7.0/gems/rdoc-6.4.0/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
rdoc-6.4.0 lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
rdoc-6.3.3 lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
rdoc-6.3.2 lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
gitlab-rdoc-6.3.2 lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
rdoc-6.3.1 lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml
rdoc-6.3.0 lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml