@ebarooni/capacitor-docgen
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -176,2 +176,7 @@ "use strict"; | ||
} | ||
const platform = getTagText(m.tags, "platform"); | ||
if (platform) { | ||
o.push(`**Platform:** ${platform}`); | ||
o.push(``); | ||
} | ||
o.push(`--------------------`); | ||
@@ -256,3 +261,10 @@ o.push(``); | ||
const t = new markdown_1.MarkdownTable(); | ||
t.addHeader([`Prop`, `Type`, `Description`, `Default`, `Since`]); | ||
t.addHeader([ | ||
`Prop`, | ||
`Type`, | ||
`Description`, | ||
`Default`, | ||
`Since`, | ||
`Platform`, | ||
]); | ||
i.properties.forEach((m) => { | ||
@@ -266,2 +278,3 @@ const defaultValue = getTagText(m.tags, "default"); | ||
getTagText(m.tags, "since"), | ||
getTagText(m.tags, "platform"), | ||
]); | ||
@@ -297,3 +310,10 @@ }); | ||
const t = new markdown_1.MarkdownTable(); | ||
t.addHeader([`Prop`, `Type`, `Description`, `Default`, `Since`]); | ||
t.addHeader([ | ||
`Prop`, | ||
`Type`, | ||
`Description`, | ||
`Default`, | ||
`Since`, | ||
`Platform`, | ||
]); | ||
i.properties.forEach((m) => { | ||
@@ -307,2 +327,3 @@ const defaultValue = getTagText(m.tags, "default"); | ||
getTagText(m.tags, "since"), | ||
getTagText(m.tags, "platform"), | ||
]); | ||
@@ -340,3 +361,3 @@ }); | ||
const t = new markdown_1.MarkdownTable(); | ||
t.addHeader([`Members`, `Value`, `Description`, `Since`]); | ||
t.addHeader([`Members`, `Value`, `Description`, `Since`, `Platform`]); | ||
i.members.forEach((m) => { | ||
@@ -348,2 +369,3 @@ t.addRow([ | ||
getTagText(m.tags, "since"), | ||
getTagText(m.tags, "platform"), | ||
]); | ||
@@ -350,0 +372,0 @@ }); |
{ | ||
"name": "@ebarooni/capacitor-docgen", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Docs Readme Markdown and JSON Generator for Capacitor Plugins", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
57746
1421