OLD | NEW |
1 {{- This is the shared template for API documentations. | 1 {{- This is the shared template for API documentations. |
2 - |api| The API being documented. | 2 - |api| The API being documented. |
3 - |intro?| The intro documentation for the API, if any. | 3 - |intro?| The intro documentation for the API, if any. |
4 - |samplesForApi| The API samples. | 4 - |samplesForApi| The API samples. |
5 - |sidenav| The sidenav items. | 5 - |sidenav| The sidenav items. |
6 - |platform| The platform. | 6 - |platform| The platform. |
7 - |platformTitle| The title of the platform ("Extensions" or "Apps"). | 7 - |platformTitle| The title of the platform ("Extensions" or "Apps"). |
8 -}} | 8 -}} |
9 {{+content:partials.site | 9 {{+content:partials.site |
10 platform:platform | 10 platform:platform |
11 platformTitle:platformTitle | 11 platformTitle:platformTitle |
12 sidenav:sidenav}} | 12 sidenav:sidenav}} |
13 {{?api.channelWarning.trunk +partials.warning_trunk/}} | 13 {{?api.channelWarning.trunk +partials.warning_trunk/}} |
14 {{?api.channelWarning.dev +partials.warning_dev/}} | 14 {{?api.channelWarning.dev +partials.warning_dev/}} |
15 {{?api.channelWarning.beta +partials.warning_beta/}} | 15 {{?api.channelWarning.beta +partials.warning_beta/}} |
16 <h1>{{api.title}}</h1> | 16 <h1>{{api.title}}</h1> |
17 $(table_of_contents) | 17 $(table_of_contents) |
18 {{+partials.intro_table api:api /}} | 18 {{+partials.intro_table api:api /}} |
19 {{?intro +intro platform:platform platformTitle:platformTitle /}} | 19 {{?intro}} |
| 20 <section> |
| 21 {{+intro platform:platform platformTitle:platformTitle /}} |
| 22 </section> |
| 23 {{/intro}} |
| 24 <section> |
| 25 <h2 id="api-reference-header" title="">{{api.namespace}} reference</h2> |
20 {{+partials.api_reference api:api | 26 {{+partials.api_reference api:api |
21 platform:platform | 27 platform:platform |
22 platformTitle:platformTitle | 28 platformTitle:platformTitle |
23 samplesForApi:samplesForApi /}} | 29 samplesForApi:samplesForApi /}} |
| 30 </section> |
24 {{/partials.site}} | 31 {{/partials.site}} |
OLD | NEW |