Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: chrome/common/extensions/docs/templates/private/callback.html

Issue 99703004: Docserver: Fix the TOC rendering for API references by fixing the haphazard way (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 {{#callback}} 1 {{#callback}}
2 <h4>Callback</h4>
3 <p> 2 <p>
4 {{?optional}} 3 {{?optional}}
5 If you specify the <em>{{name}}</em> parameter, it should 4 If you specify the <em>{{name}}</em> parameter, it should
6 specify a function that looks like this: 5 specify a function that looks like this:
7 {{:optional}} 6 {{:optional}}
8 The <em>{{name}}</em> parameter should specify a function 7 The <em>{{name}}</em> parameter should specify a function
9 that looks like this: 8 that looks like this:
10 {{/optional}} 9 {{/optional}}
11 </p> 10 </p>
12 <pre>function({{#p:parameters}}{{+partials.variable_type type:p/}} {{p.name}}{{^ p.last}}, {{/}}{{/}}) <span class="subdued">{...}</span>;</pre> 11 <pre>function({{#p:parameters}}{{+partials.variable_type type:p/}} {{p.name}}{{^ p.last}}, {{/}}{{/}}) <span class="subdued">{...}</span>;</pre>
13 {{?description}} 12 {{?description}}
14 <p> 13 <p>
15 {{{description}}} 14 {{{description}}}
16 </p> 15 </p>
17 {{/description}} 16 {{/description}}
18 {{?parameters}} 17 {{?parameters}}
19 <dl> 18 <dl>
20 {{#p:parameters}} 19 {{#p:parameters}}
21 {{+partials.parameter_full parameter:p/}} 20 {{+partials.parameter_full parameter:p parentName:name hideParamTOC:true /}}
22 {{/parameters}} 21 {{/parameters}}
23 </dl> 22 </dl>
24 {{/parameters}} 23 {{/parameters}}
25 {{/callback}} 24 {{/callback}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698