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 (57 lines) | stat: -rw-r--r-- 1,891 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<%= head_template(config, %{title: module.title, type: module.type, noindex: false}) %>
<%= sidebar_template(config, nodes_map) %>

<div id="top-content">
  <h1>
    <%= if module.source_url do %>
      <a href="<%= module.source_url %>" title="View Source" class="icon-action" rel="help">
        <i class="ri-code-s-slash-line" aria-hidden="true"></i>
        <span class="sr-only">View Source</span>
      </a>
    <% end %>
    <span translate="no"><%= module.title %></span> <%= module_type(module) %>
    <small class="app-vsn" translate="no">(<%= config.project %> v<%= config.version %>)</small>
    <%= for annotation <- module.annotations do %>
      <span class="note">(<%= annotation %>)</span>
    <% end %>
  </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">
      <%= link_moduledoc_headings(doc) %>
    </section>
  <% end %>
</div>

<%= if summary != [] do %>
  <section id="summary" class="details-list">
    <h1 class="section-heading">
      <a class="hover-link" href="#summary">
        <i class="ri-link-m" aria-hidden="true"></i>
      </a>
      <span class="text">Summary</span>
    </h1>
    <%= for {name, nodes} <- summary, do: 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">
      <a class="hover-link" href="#<%= key %>">
        <i class="ri-link-m" aria-hidden="true"></i>
      </a>
      <span class="text"><%= name %></span>
    </h1>
    <div class="<%= key %>-list">
      <%= for node <- nodes, do: detail_template(node, module) %>
    </div>
  </section>
<% end %>
<%= footer_template(config, module) %>