module_template.eex (1648B)
1 <%= head_template(config, %{title: module.title}) %> 2 <h1 id="content"> 3 <%= module.title %> <%= H.module_type(module) %> 4 </h1> 5 6 <%= if deprecated = module.deprecated do %> 7 <div class="deprecated"> 8 This <%= module.type %> is deprecated. <%= ExDoc.Utils.h(deprecated) %>. 9 </div> 10 <% end %> 11 12 <%= if doc = module.rendered_doc do %> 13 <section id="moduledoc" class="docstring"> 14 <%= doc %> 15 </section> 16 <% end %> 17 18 <%= if Enum.any?(summary, fn {_, v} -> v != [] end) do %> 19 <section id="summary" class="details-list"> 20 <h1 class="section-heading"> 21 <a class="hover-link" href="#summary"> 22 <i class="ri-link-m" aria-hidden="true"></i> 23 <span class="sr-only">Anchor for this section</span> 24 </a> 25 Summary 26 </h1> 27 <%= for {name, nodes} <- summary, do: H.summary_template(name, nodes) %> 28 </section> 29 <% end %> 30 31 <%= for {name, nodes} <- summary, nodes != [], key = HTML.text_to_id(name) do %> 32 <section id="<%= key %>" class="details-list"> 33 <h1 class="section-heading"> 34 <a class="hover-link" href="#<%= key %>"> 35 <i class="ri-link-m" aria-hidden="true"></i> 36 <span class="sr-only">Anchor for this section</span> 37 </a> 38 <%= name %> 39 </h1> 40 <div class="<%= key %>-list"> 41 <%= for node <- nodes, do: H.detail_template(node, module) %> 42 </div> 43 </section> 44 <% end %> 45 <%# Extra content specified by the user (e.g. custom Javascript) %> 46 <%= config.before_closing_body_tag.(:epub) %> 47 </body> 48 </html>