-
Notifications
You must be signed in to change notification settings - Fork 0
/
.template.doxx
81 lines (74 loc) · 2.13 KB
/
.template.doxx
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
div.container.grid
aside.colspan1
nav.symbols
ul
each symbol in symbols
if symbol.type === "function" || symbol.type === "method"
li
a(href="#"+symbol.name)
i(class=["symbol", "symbol-method"])
span #{symbol.name}
each symbol in symbols
if symbol.type === "property"
li
a(href="#"+symbol.name)
i(class=["symbol", "symbol-property"])
span #{symbol.name}
div.colspan4.api
each symbol in dox
if symbol.gtype === "function" || symbol.gtype === "method"
if symbol.ctx.name
section(id=symbol.ctx.name)
h1= symbol.ctx.name
div.subheader
if !symbol.gtype && symbol.type
span(class=["label", "label-inverse"])= symbol.type
else
span(class=["label", "label-method"])= symbol.ctx.type
if symbol.ctx.string
span= symbol.ctx.string
if symbol.return
| →
span= symbol.return
if symbol.hasParams
table.table
thead
tr
th Option name
th Type
th Description
tbody
each tag in symbol.tags
if tag.type == 'param'
tr
td= tag.name
td= tag.types
td= tag.description
.description !{symbol.description.full} !{symbol.description.extra}
each symbol in dox
if symbol.gtype === "property"
if symbol.ctx.name
section(id=symbol.ctx.name)
h1= symbol.ctx.name
div.subheader
if !symbol.gtype && symbol.type
span(class=["label", "label-inverse"])= symbol.type
else
span(class=["label", "label-property"])= symbol.ctx.type
if symbol.ctx.string
span= symbol.ctx.string
if symbol.hasParams
table.table
thead
tr
th(style="width:20%") Option name
th(style="width:20%") Type
th Description
tbody
each tag in symbol.tags
if tag.type == 'param'
tr
td= tag.name
td= tag.types
td= tag.description
.description !{symbol.description.full} !{symbol.description.extra}