File: nav_template.eex

package info (click to toggle)
elixir-ex-doc 0.35.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: javascript: 2,848; makefile: 15; xml: 12; sh: 5
file content (23 lines) | stat: -rw-r--r-- 618 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<%= head_template(config, %{title: "Table Of Contents"}) %>
    <h1>Table of contents</h1>
    <nav epub:type="toc">
      <ol>
        <%= nav_grouped_item_template config.extras  %>

        <%= unless Enum.empty?(nodes.modules) do %>
        <li>
          <ol>
            <li><span>Modules</span>
              <ol>
              <%= nav_grouped_item_template nodes.modules  %>
              </ol>
            </li>
          </ol>
        </li>
        <% end %>
        <%= nav_item_template "Mix Tasks", nodes.tasks %>
      </ol>
    </nav>
    <%= before_closing_body_tag(config, :epub) %>
  </body>
</html>