Merge pull request #52 from ihadeed/add-docs-platforms

chore(docs): add platforms decorator
This commit is contained in:
Ibrahim Hadeed 2016-03-14 13:25:16 -04:00
commit 363be2feb7

View File

@ -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 @>