This repository has been archived by the owner on Jan 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsection.hbs
142 lines (133 loc) · 3.28 KB
/
section.hbs
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<section id='{{permalink}}'class='mt4 mb4 px2'>
{{#if context.github}}
<div class='right py2'>
{{#if augments}}
<span class='font-smaller'>
Extends
{{#augments}}
{{{autolink name}}}
{{/augments}}
</span>
{{/if}}
<a class='fade font-smaller' href='{{{context.github}}}'><code>{{{context.path}}}</code></a>
</div>
{{/if}}
<h3 class='regular'>
<a class='black' href='#{{permalink}}'>
<code>
{{name}}<span class='gray'>{{{format_params}}}</span>
</code>
</a>
</h3>
{{{md description}}}
{{#if params}}
<p>
<table class='table-light overflow-hidden bg-cloudy-light'>
<thead>
<th class='col-3'>parameter</th>
<th class='col-3'>type</th>
<th class='col-6'>description</th>
</thead>
{{#params}}
<tr>
<td>{{name}}</td>
<td>
{{{format_type type}}}
{{#default}}
(default <code>{{.}}</code>)
{{/default}}
</td>
<td>{{{md description}}}</td>
</tr>
{{#properties}}
<tr>
<td>{{name}}</td>
<td>
{{{format_type type}}}
{{#default}}
(default <code>{{.}}</code>)
{{/default}}
</td>
<td>{{{md description}}}</td>
</tr>
{{/properties}}
{{/params}}
</table>
</p>
{{/if}}
{{#if properties}}
<p>
<table class='table-light overflow-hidden bg-cloudy-light'>
<thead>
<th class='col-3'>property</th>
<th class='col-3'>type</th>
<th class='col-6'>description</th>
</thead>
{{#properties}}
<tr>
<td>{{name}}</td>
<td>
{{{format_type type}}}
{{#default}}
(default <code>{{.}}</code>)
{{/default}}
</td>
<td>{{{md description}}}</td>
</tr>
{{/properties}}
</table>
</p>
{{/if}}
{{#if returns}}
{{#returns}}
<h4>Returns</h4>
<code>{{{format_type type}}}</code>
{{#if description}}:{{/if}}
<span class='force-inline'>
{{{md description}}}
</span>
{{/returns}}
{{/if}}
{{#if throws}}
<h4>Throws</h4>
<table class='table-light overflow-hidden bg-cloudy-light'>
<thead>
<th class='col-3'>exception</th>
<th class='col-9'>description</th>
</thead>
{{#throws}}
<tr>
<td>{{{format_type type}}}</td>
<td>
{{{md description}}}
</td>
</tr>
{{/throws}}
</table>
{{/if}}
{{#if examples}}
<h4>Examples</h4>
{{#each examples ~}}<pre>{{{.}}}</pre>{{/each}}
{{/if}}
{{#if members.static}}
{{#each members.static}}
<div class='section-indent'>
{{> section}}
</div>
{{/each}}
{{/if}}
{{#if members.instance}}
{{#each members.instance}}
<div class='section-indent'>
{{> section}}
</div>
{{/each}}
{{/if}}
{{#if events}}
{{#each events}}
<div class='section-indent'>
{{> section}}
</div>
{{/each}}
{{/if}}
</section>