mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
docs(docs): add platforms decorator output
This commit is contained in:
parent
8a7779421a
commit
23db55e7c1
35
scripts/docs/templates/common.template.html
vendored
35
scripts/docs/templates/common.template.html
vendored
@ -123,6 +123,19 @@ docType: "<$ doc.docType $>"
|
|||||||
<$ prop.repo $>
|
<$ prop.repo $>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<@ if prop.platforms @>
|
||||||
|
<!-- @platforms tag -->
|
||||||
|
<h2>Supported platforms</h2>
|
||||||
|
<@ block platforms @>
|
||||||
|
<ul>
|
||||||
|
<@- for platform in prop.platforms @>
|
||||||
|
<li><$ platform $></li>
|
||||||
|
<@ endfor -@>
|
||||||
|
</ul>
|
||||||
|
<@ endblock @>
|
||||||
|
<@ endif @>
|
||||||
|
|
||||||
<@ endfor @>
|
<@ endfor @>
|
||||||
<@ endif -@>
|
<@ endif -@>
|
||||||
|
|
||||||
@ -137,14 +150,6 @@ docType: "<$ doc.docType $>"
|
|||||||
<h3><$ doc.directiveInfo.properties[0].name $>: <code><$ doc.directiveInfo.properties[0].values $></code></h3>
|
<h3><$ doc.directiveInfo.properties[0].name $>: <code><$ doc.directiveInfo.properties[0].values $></code></h3>
|
||||||
<@ endif -@>
|
<@ endif -@>
|
||||||
|
|
||||||
<!-- @platforms tag -->
|
|
||||||
<@ if doc.platforms @>
|
|
||||||
<h2>Supported platforms</h2>
|
|
||||||
<@ block platforms @>
|
|
||||||
<$ doc.platforms $>
|
|
||||||
<@ endblock @>
|
|
||||||
<@ endif @>
|
|
||||||
|
|
||||||
<!-- @usage tag -->
|
<!-- @usage tag -->
|
||||||
<@ if doc.usage @>
|
<@ if doc.usage @>
|
||||||
<h2>Usage</h2>
|
<h2>Usage</h2>
|
||||||
@ -202,10 +207,18 @@ docType: "<$ doc.docType $>"
|
|||||||
<div id="<$ method.name $>"></div>
|
<div id="<$ method.name $>"></div>
|
||||||
<h3><$ functionSyntax(method) $></h3>
|
<h3><$ functionSyntax(method) $></h3>
|
||||||
|
|
||||||
<@ if method.platforms @>
|
<@- if method.decorators @>
|
||||||
<h4>Platforms: <small><$ method.platforms $></small></h4>
|
<@ for prop in method.decorators[0].argumentInfo @>
|
||||||
|
<@ if prop.platforms @>
|
||||||
|
<h4>Platforms:</h4>
|
||||||
|
<ul>
|
||||||
|
<@- for platform in prop.platforms @>
|
||||||
|
<li><$ platform $></li>
|
||||||
|
<@ endfor -@>
|
||||||
|
</ul>
|
||||||
<@ endif @>
|
<@ endif @>
|
||||||
|
<@ endfor @>
|
||||||
|
<@ endif -@>
|
||||||
|
|
||||||
<$ method.description $>
|
<$ method.description $>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user