mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-18 14:53:13 +08:00
Merge pull request #52 from ihadeed/add-docs-platforms
chore(docs): add platforms decorator
This commit is contained in:
commit
363be2feb7
26
scripts/docs/templates/common.template.html
vendored
26
scripts/docs/templates/common.template.html
vendored
@ -123,6 +123,19 @@ Improve this doc
|
|||||||
<$ 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 -@>
|
||||||
|
|
||||||
@ -194,6 +207,19 @@ Improve this doc
|
|||||||
<div id="<$ method.name $>"></div>
|
<div id="<$ method.name $>"></div>
|
||||||
<h3><$ functionSyntax(method) $></h3>
|
<h3><$ functionSyntax(method) $></h3>
|
||||||
|
|
||||||
|
<@- 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 $>
|
<$ method.description $>
|
||||||
|
|
||||||
<@ if method.params @>
|
<@ if method.params @>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user