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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/apps_manifest.html

Issue 14273041: Doc server manifest page generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 unified diff | Download patch
OLDNEW
(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.apps_manifest.required}}
24 "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>,
not at google - send to devlin 2013/04/30 16:21:09 Surprising to see JSON here... seems like it shoul
jshumway 2013/05/03 03:44:39 I used this accessor so that we can write literal
not at google - send to devlin 2013/05/03 15:56:24 nope, the way you have it is good. I like it.
25 {{/}}
not at google - send to devlin 2013/04/30 16:21:09 Pull this into a partial and pass the manifest dat
jshumway 2013/05/03 03:44:39 Done.
26
27 <em>// Recommended</em>
28 {{#manifest_json.apps_manifest.recommended}}
29 "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>,
30 {{/}}
31
32 <em>// Pick one (or none)</em>
33 {{#manifest_json.apps_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.apps_manifest.optional}}
39 "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>,
40 {{/}}
41 }
42 </pre>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698