mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +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 $>
|
||||
</a>
|
||||
</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 @>
|
||||
<@ endif -@>
|
||||
|
||||
@ -137,14 +150,6 @@ docType: "<$ doc.docType $>"
|
||||
<h3><$ doc.directiveInfo.properties[0].name $>: <code><$ doc.directiveInfo.properties[0].values $></code></h3>
|
||||
<@ endif -@>
|
||||
|
||||
<!-- @platforms tag -->
|
||||
<@ if doc.platforms @>
|
||||
<h2>Supported platforms</h2>
|
||||
<@ block platforms @>
|
||||
<$ doc.platforms $>
|
||||
<@ endblock @>
|
||||
<@ endif @>
|
||||
|
||||
<!-- @usage tag -->
|
||||
<@ if doc.usage @>
|
||||
<h2>Usage</h2>
|
||||
@ -202,10 +207,18 @@ docType: "<$ doc.docType $>"
|
||||
<div id="<$ method.name $>"></div>
|
||||
<h3><$ functionSyntax(method) $></h3>
|
||||
|
||||
<@ if method.platforms @>
|
||||
<h4>Platforms: <small><$ method.platforms $></small></h4>
|
||||
|
||||
<@- if method.decorators @>
|
||||
<@ 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 @>
|
||||
<@ endfor @>
|
||||
<@ endif -@>
|
||||
|
||||
<$ method.description $>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user