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

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

Issue 691283003: Write docs for options_ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inline-type
Patch Set: fixes Created 6 years, 2 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/manifest_type.html
diff --git a/chrome/common/extensions/docs/templates/private/manifest_type.html b/chrome/common/extensions/docs/templates/private/manifest_type.html
new file mode 100644
index 0000000000000000000000000000000000000000..f1e3ec8c39923090dcaead07656fc03e043e2690
--- /dev/null
+++ b/chrome/common/extensions/docs/templates/private/manifest_type.html
@@ -0,0 +1,33 @@
+{{-
+ Renders a manifest type, in a style more suited to be inlined in a document.
+ Parameters:
+ |type| The model of the type to render.
+-}}
+
+<p>
+<ul>
+{{#f:type.properties}}
+ <li>
+ <p id="{{f.name}}">
+ <b><code>{{f.name}}</code> ({{+partials.variable_type type:f/}})</b>
+ - {{?f.optional}}optional{{:}}required{{/f.optional}}
+ </p>
+ <p>
+ {{{f.description}}}
+ </p>
+ {{?f.properties}}
+ <table>
+ <tr>
+ <th>Type</th>
+ <th>Attribute</th>
+ <th>Description</th>
+ </tr>
+ {{+partials.type_item
+ title:f.strings.properties
+ display_name:display_name
+ items:f.properties
+ item_partial:(partials.parameter_full hideParamTOC:true)/}}
+ </table>
+ {{/f.properties}}
+{{/type.properties}}
+</ul>

Powered by Google App Engine
This is Rietveld 408576698