Skip to content

Commit 0487bc9

Browse files
committed
Make function signature be a H1 element
Closes #923
1 parent 3e21b29 commit 0487bc9

File tree

7 files changed

+8
-47
lines changed

7 files changed

+8
-47
lines changed

assets/less/content/functions.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
}
3434

3535
.signature {
36+
font-family: @monoFontFamily;
3637
font-size: 1rem;
3738
font-weight: 700;
3839
}

assets/less/content/general.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ h1 {
1616
font-size: 2em;
1717
margin: 1em 0 .5em;
1818

19+
&.signature {
20+
margin: 0;
21+
}
22+
1923
&.section-heading {
2024
margin: 1.5em 0 .5em;
2125
}

formatters/epub/dist/epub-46d479a2637bd24d42ca.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

formatters/epub/dist/epub-46d479a2637bd24d42ca.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

formatters/html/dist/html-f59c25a01bb1b031a495.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

formatters/html/dist/html-f59c25a01bb1b031a495.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/ex_doc/formatter/html/templates/detail_template.eex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="detail" id="<%=enc_h link_id(node.id, node.type) %>">
1+
<section class="detail" id="<%=enc_h link_id(node.id, node.type) %>">
22
<%= if is_enc? link_id(node.id, node.type) do %>
33
<span id="<%=h link_id(node.id, node.type) %>"></span>
44
<% end %>
@@ -10,7 +10,7 @@
1010
<span class="icon-link" aria-hidden="true"></span>
1111
<span class="sr-only">Link to this <%= pretty_type(node) %></span>
1212
</a>
13-
<span class="signature"><%=h node.signature %></span>
13+
<h1 class="signature"><%=h node.signature %></span>
1414
<%= if node.source_url do %>
1515
<a href="<%= node.source_url %>" class="view-source" rel="help" title="View Source">
1616
<span class="icon-code" aria-hidden="true"></span>
@@ -36,4 +36,4 @@
3636
<section class="docstring">
3737
<%= node.doc |> to_html(node) |> link_detail_headings(enc_h(link_id(node))) %>
3838
</section>
39-
</div>
39+
</section>

0 commit comments

Comments
 (0)