Skip to content

Commit 31546f9

Browse files
committed
Show enabled functions and better formatting of fields
1 parent c5e4041 commit 31546f9

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

index.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<div>
2727
<ul id="list-api">
2828
<a href="/"><li class="brand">NodeGit</li></a>
29+
<hr>
2930
</ul>
3031
<div class="api-content">
3132
<script type="inner-content">
@@ -63,9 +64,24 @@ <h4>Properties:</h4>
6364
{%if not fields.length%}
6465
<li>No properties available.</li>
6566
{%endif%}
66-
{%each fields as field%}
67-
<li id="{{jsClassName}}/field/{{field.name}}">{{field.name}}</li>
68-
{%endeach%}
67+
<li>
68+
<table class="pure-table">
69+
<thead>
70+
<tr>
71+
<th><sub>Name</sub></th>
72+
<th><sub>Type</sub></th>
73+
</tr>
74+
</thead>
75+
<tbody>
76+
{%each fields as field%}
77+
<tr id="{{jsClassName}}/field/{{field.name}}">
78+
<td><strong>{{field.name}}</strong></td>
79+
<td>{{ field.jsClassName }}</td>
80+
</tr>
81+
{%endeach%}
82+
</tbody>
83+
</table>
84+
</li>
6985
</ul>
7086

7187
<h4>Functions:</h4>
@@ -75,7 +91,7 @@ <h4>Functions:</h4>
7591
{%endif%}
7692
{%each functions as function%}
7793
<li id="{{jsClassName}}/function/{{function.name}}">
78-
<strong>{{jsClassName}}#</strong><strong class="method">{{function.jsFunctionName}}</strong>
94+
<strong class="{%if not function.ignore%}is{%else%}not{%endif%} added">{{jsClassName}}#</strong><strong class="method">{{function.jsFunctionName}}</strong>
7995
</li>
8096
{%endeach%}
8197
</ul>

styles/api.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ ul.api-contents table h3 {
126126
margin-top: 20px;
127127
padding: 10px;
128128
padding-left: 30px;
129+
list-style: none;
129130
}
130131

131132
.api-content .inner-block h3 {

0 commit comments

Comments
 (0)