Skip to content

Commit 44c2ef5

Browse files
committed
add anchor point to methods
1 parent 7eb2deb commit 44c2ef5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

assets/app.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ body .container .sidebar ul a {
8282
.method .prefix {
8383
font-size: 20px;
8484
color: #949494;
85+
line-height: 20px;
86+
text-decoration: none;
8587
}
8688

8789
.class_name {

templates/html/class.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ <h2>Instance Methods</h2>
1010
<hr />
1111
{{ range .class.InstanceMethods }}
1212
<h4 class="method">
13-
<span class="prefix">#</span>
14-
<span class="title">{{.FnName}}</span>
13+
<a class="prefix" href="#{{.FnName}}">#</a>
14+
<span class="title" id="{{.FnName}}">{{.FnName}}</span>
1515
</h4>
1616
<div class="method-comment">{{.Comment}}</div>
1717
<p class="source">

0 commit comments

Comments
 (0)