Files
ionic-framework/docs/templates/lib/methods.template.html
Andy Joslin 55089042d8 chore(build): documentation generation
Main changes:

* Use gulpfile now (build was getting way too disorganized with custom
tasks; gulpfiles are much easier to build clean custom tasks with than
Grunt.
* View README#Development for updated commands
* Docs written for ionContent, ionHeaderBar, ionInfiniteScroll.
* Docs are pushed to ajoslin's fork of ionic-site until they reach a
* point where they can be published.

**TODO, In Order of Priority**

1. Finish writing source-documentation for all existing components
2. Add multiple versions of docs (one per release & nightly, latest
 stable release docs being shown by default)
3. Add examples generation
4. Add searchbar to docs
2014-03-07 13:36:36 -07:00

28 lines
593 B
HTML

<@- if doc.methods @>
<h2>Methods</h2>
<ul class="methods">
<@- for method in doc.methods @>
<li id="<$ method.name $>">
<h3><$ functionSyntax(method) $></h3>
<div><$ method.description | marked $></div>
<@ if method.params @>
<h4>Parameters</h4>
<$ paramTable(method.params) $>
<@ endif @>
<@ if method.this @>
<h4>Method's <@ code @>this<@ endcode @></h4>
<$ method.this | marked $>
<@ endif @>
<@ if method.returns @>
<h4>Returns</h4>
<$ typeInfo(method.returns) $>
<@ endif @>
</li>
<@ endfor -@>
</ul>
<@- endif -@>