mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
generate api index page
This commit is contained in:
28
scripts/docs/templates/api/object.template.html
vendored
Normal file
28
scripts/docs/templates/api/object.template.html
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<@ include "lib/macros.html" -@>
|
||||
<@ extends "api/api.template.html" @>
|
||||
|
||||
<@ block additional @>
|
||||
|
||||
<@ if doc.usage @>
|
||||
## Usage
|
||||
<$ doc.usage $>
|
||||
<@ endif @>
|
||||
|
||||
<@ if doc.params or doc.returns or doc.this or doc.kind == 'function' -@>
|
||||
<h2 id="usage">Usage</h2>
|
||||
<@ if doc.usage @>
|
||||
<$ doc.usage $>
|
||||
<@ else @>
|
||||
<$ functionSyntax(doc) $>
|
||||
<@ endif @>
|
||||
|
||||
<$ paramTable(doc.params) $>
|
||||
<@ include "lib/this.template.html" @>
|
||||
<@ include "lib/returns.template.html" @>
|
||||
<@- endif @>
|
||||
|
||||
<@ include "lib/methods.template.html" @>
|
||||
<@ include "lib/events.template.html" @>
|
||||
<@ include "lib/properties.template.html" @>
|
||||
|
||||
<@ endblock @>
|
||||
Reference in New Issue
Block a user