OLD | NEW |
(Empty) | |
| 1 <h1>Formats: Manifest Files</h1> |
| 2 |
| 3 |
| 4 <p> |
| 5 Every extension, installable web app, and theme has a |
| 6 <a href="http://www.json.org">JSON</a>-formatted manifest file, |
| 7 named <code>manifest.json</code>, |
| 8 that provides important information. |
| 9 </p> |
| 10 |
| 11 <h2 id="overview"> Field summary </h2> |
| 12 |
| 13 <p> |
| 14 The following code shows the supported manifest fields, |
| 15 with links to the page that discusses each field. |
| 16 The only fields that are always required |
| 17 are <b>name</b> and <b>version</b>. |
| 18 </p> |
| 19 |
| 20 <pre> |
| 21 { |
| 22 <em>// Required</em> |
| 23 {{#manifest_json.extensions_manifest.required}} |
| 24 "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>, |
| 25 {{/}} |
| 26 |
| 27 <em>// Recommended</em> |
| 28 {{#manifest_json.extensions_manifest.recommended}} |
| 29 "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>, |
| 30 {{/}} |
| 31 |
| 32 <em>// Pick one (or none)</em> |
| 33 {{#manifest_json.extensions_manifest.only_one}} |
| 34 "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>, |
| 35 {{/}} |
| 36 |
| 37 <em>// Add any of these that you need</em> |
| 38 {{#manifest_json.extensions_manifest.optional}} |
| 39 "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>, |
| 40 {{/}} |
| 41 } |
| 42 </pre> |
OLD | NEW |