Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "builddocs", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Build documentation files from commented source code", | ||
@@ -5,0 +5,0 @@ "main": "src/builddocs.js", |
@@ -92,2 +92,3 @@ module.exports = { | ||
BeforeLoadEvent: "https://developer.mozilla.org/en/docs/DOM/window", | ||
ClipboardEvent: "https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent", | ||
WebSocket: "https://developer.mozilla.org/en/docs/WebSockets", | ||
@@ -94,0 +95,0 @@ Worker: "https://developer.mozilla.org/en/docs/DOM/Worker", |
<<in {item, name}>> | ||
### <<if item.abstract>>abstract <</if>><<h item.kind == "typealias" ? "type" : item.kind>> <<h name>> | ||
<<if item.typeParams>>`<<typeparams item>><</if>> | ||
<<if item.typeParams>>`<<typeparams item>>`<</if>> | ||
<<if item.extends>> extends <<type item.extends>><</if>> | ||
@@ -6,0 +6,0 @@ <<for impl item.implements || [] |
@@ -7,3 +7,3 @@ <<in {item, name, static, abstract, depth=0}>> | ||
<<else>> | ||
**`<<h name>>`**<<if item.type>>`: <<type item>>`<</if>> | ||
**`<<h name>>`**`<<if item.optional>>?<</if>><<if item.type>>: <<type item>><</if>>` | ||
<</if>> | ||
@@ -19,9 +19,13 @@ <<for sig item.signatures?.slice(1) || []>> | ||
<</for>> | ||
<<for param item.params || []>> | ||
<<if hasDescription(param)>> | ||
<<define {item: param, name: param.name, depth: depth + 3}>> | ||
<<for params (item.signatures || []).map(s => s.params.concat(item.typeParams || [])).concat([item.typeParams || []])>> | ||
<<for param params>> | ||
<<if hasDescription(param)>> | ||
<<define {item: param, name: param.name, depth: depth + 3}>> | ||
<</if>> | ||
<</for>> | ||
<</for>> | ||
<<for sig (item.signatures || [])>> | ||
<<if sig.returns && hasDescription(sig.returns)>> | ||
<<define {item: sig.returns, name: "returns", depth: depth + 3}>> | ||
<</if>> | ||
<</for>> | ||
<<if item.returns && hasDescription(item.returns)>> | ||
<<define {item: item.returns, name: "returns", depth: depth + 3}>> | ||
<</if>> | ||
<</for>> |
<<typeparams $in>> | ||
(<<for param $in.params || []>> | ||
<<if $i>>, <</if>><<if param.rest>>...<</if>> | ||
<<if param.name>><<h param.name>>: <</if>> | ||
<<if param.name>><<h param.name>><<if param.optional>>?<</if>>: <</if>> | ||
<<type param>> | ||
@@ -6,0 +6,0 @@ <<if param.default>> = <<h param.default>><</if>> |
@@ -10,3 +10,2 @@ <<do | ||
<<if $in.optional>>?<</if>> | ||
<<if $in.type == "Function">> | ||
@@ -13,0 +12,0 @@ fn<<fntype $in.signatures[0]>> |
@@ -7,3 +7,3 @@ <<if $in.typeParams>> | ||
<<if tp.default>> = <<t tp.default>><</if>> | ||
<</for>> | ||
<</for>>> | ||
<</if>> |
43493
381