mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-15 20:57:07 +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 $>
|
||||
</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 -@>
|
||||
|
||||
@ -194,6 +207,19 @@ Improve this doc
|
||||
<div id="<$ method.name $>"></div>
|
||||
<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 $>
|
||||
|
||||
<@ if method.params @>
|
||||
|
Loading…
x
Reference in New Issue
Block a user