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

Unified Diff: chrome/common/extensions/docs/templates/private/api_summary.html

Issue 149673004: Rework API reference pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bumped versions Created 6 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/templates/private/api_summary.html
diff --git a/chrome/common/extensions/docs/templates/private/api_summary.html b/chrome/common/extensions/docs/templates/private/api_summary.html
new file mode 100644
index 0000000000000000000000000000000000000000..73ed0c209eb80387e9a036a509b585a92bf6281c
--- /dev/null
+++ b/chrome/common/extensions/docs/templates/private/api_summary.html
@@ -0,0 +1,38 @@
+<section id="toc">
+<h2>Summary</h2>
+<table class="api-summary">
+ <tr>
+ {{?api.types}}
+ <tr><th colspan="2">Types</th></tr>
+ {{#t:api.types}}
+ <tr><td><a href="#{{t.id}}">{{t.name}}</a></td></tr>
+ {{/}}
+ {{/api.types}}
+ {{?api.properties}}
+ <tr><th colspan="2">Properties</th></tr>
+ {{#p:api.properties}}
+ <tr><td><a href="#{{p.id}}">{{p.name}}</a></td>
+ {{/}}
+ {{/api.properties}}
+ {{?api.functions}}
+ <tr><th colspan="2">Methods</th></tr>
+ {{#f:api.functions}}
+ <tr><td><a href="#{{f.id}}">{{f.name}}</a> &minus;
+ {{+partials.function_signature function:f api:api disableLink:f.id/}}
+ </td></tr>
+ {{/}}
+ {{/api.functions}}
+ {{?api.events}}
+ <tr><th colspan="2">Events</th></tr>
+ {{#e:api.events}}
+ <tr><td><a href="#{{e.id}}">{{e.name}}</a></td></tr>
+ {{/}}
+ {{/api.events}}
+ {{?api.domEvents}}
+ <tr><th colspan="2">DOM Events</th></tr>
+ {{#e:api.domEvents}}
+ <tr><td><a href="#{{e.id}}">{{e.name}}</a></td></tr>
+ {{/api.domEvents}}
+ {{/api.domEvents}}
+</table>
+</section>

Powered by Google App Engine
This is Rietveld 408576698