builddocs
Version:
Build documentation files from commented source code
41 lines (31 loc) • 1.18 kB
HTML
<<in {item, name}>>
<dt id="<<t prefix + item.id>>">
<h4>
<code><span class=keyword><<if item.abstract>><span class=keyword>abstract</span> <</if>><<t item.kind == "typealias" ? "type" : item.kind>></span></code>
<a href="#<<t prefix + item.id>>"><<t name>></a>
<<if item.typeParams>><code><<typeparams item.typeParams>></code><</if>>
<<if item.extends>> <code><span class=keyword>extends</span> <<type item.extends>></code><</if>>
<<for impl item.implements || []
>> <code><span class=keyword><<t item.kind == "interface" ? "extends" : "implements">></span> <<type impl>></code>
<</for>>
</h4>
</dt>
<dd>
<<markdown item.description>>
<dl>
<<for param item.typeParams || []>>
<<if hasDescription(param)>>
<<define {item: param, name: param.name}>>
<</if>>
<</for>>
<<if item.construct>>
<<define {item: item.construct, name: name}>>
<</if>>
<<if item.instanceProperties>>
<<for name, prop in item.instanceProperties>><<define {item: prop, name: name}>><</for>>
<</if>>
<<if item.properties>>
<<for name, prop in item.properties>><<define {item: prop, name: name, static: item.kind == "class"}>><</for>>
<</if>>
</dl>
</dd>