Skip to content

Commit c4eed03

Browse files
committed
chore(dgeni): make returns object macro a table instead of a list
1 parent a089a97 commit c4eed03

1 file changed

Lines changed: 25 additions & 4 deletions

File tree

scripts/docs/templates/common.template.html

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,31 @@
2424
<@- endmacro -@>
2525

2626
<@ macro returnObject(params) -@>
27-
<@- if params -@><br>
28-
<@- for param in params -@>
29-
<code><$ param.type $></code> <span class="fixed-width"><$ param.key $></span> <$ param.description $><br>
30-
<@- endfor @>
27+
<@- if params -@>
28+
<table class="table returns-object-table param-table">
29+
<thead>
30+
<tr>
31+
<th>Property</th>
32+
<th>Type</th>
33+
<th>Details</th>
34+
</tr>
35+
</thead>
36+
<tbody>
37+
<@ for param in params @>
38+
<tr>
39+
<td class="fixed-width">
40+
<$ param.key $>
41+
</td>
42+
<td>
43+
<$ param.type | code $>
44+
</td>
45+
<td>
46+
<$ param.description | marked $>
47+
</td>
48+
</tr>
49+
<@ endfor @>
50+
</tbody>
51+
</table>
3152
<@- endif @>
3253
<@- endmacro -@>
3354

0 commit comments

Comments
 (0)