File: module_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 (35 lines) | stat: -rw-r--r-- 1,137 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
24
25
26
27
28
29
30
31
32
33
34
35
<%= head_template(config, %{title: module.title}) %>
    <h1 id="content">
      <%= module.title %> <%= H.module_type(module) %>
    </h1>

    <%= if deprecated = module.deprecated do %>
      <div class="deprecated">
        This <%= module.type %> is deprecated. <%=h deprecated %>.
      </div>
    <% end %>

    <%= if doc = module.rendered_doc do %>
      <section id="moduledoc" class="docstring">
        <%= H.link_moduledoc_headings(doc) %>
      </section>
    <% end %>

    <%= if summary != [] do %>
      <section id="summary" class="details-list">
        <h1 class="section-heading">Summary</h1>
        <%= for {name, nodes} <- summary, do: H.summary_template(name, nodes) %>
      </section>
    <% end %>

    <%= for {name, nodes} <- summary, key = text_to_id(name) do %>
      <section id="<%= key %>" class="details-list">
        <h1 class="section-heading"><%=h to_string(name) %></h1>
        <div class="<%= key %>-list">
          <%= for node <- nodes, do: H.detail_template(node, module) %>
        </div>
      </section>
    <% end %>
    <%= before_closing_body_tag(config, :epub) %>
  </body>
</html>