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

Unified 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, 8 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/articles/apps_manifest.html
diff --git a/chrome/common/extensions/docs/templates/articles/apps_manifest.html b/chrome/common/extensions/docs/templates/articles/apps_manifest.html
new file mode 100644
index 0000000000000000000000000000000000000000..a86ff609abd5486ee2766f02b8f11495b21b9506
--- /dev/null
+++ b/chrome/common/extensions/docs/templates/articles/apps_manifest.html
@@ -0,0 +1,42 @@
+<h1>Formats: Manifest Files</h1>
+
+
+<p>
+Every extension, installable web app, and theme has a
+<a href="http://www.json.org">JSON</a>-formatted manifest file,
+named <code>manifest.json</code>,
+that provides important information.
+</p>
+
+<h2 id="overview"> Field summary </h2>
+
+<p>
+The following code shows the supported manifest fields,
+with links to the page that discusses each field.
+The only fields that are always required
+are <b>name</b> and <b>version</b>.
+</p>
+
+<pre>
+{
+ <em>// Required</em>
+ {{#manifest_json.apps_manifest.required}}
+ "<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.
+ {{/}}
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.
+
+ <em>// Recommended</em>
+ {{#manifest_json.apps_manifest.recommended}}
+ "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>,
+ {{/}}
+
+ <em>// Pick one (or none)</em>
+ {{#manifest_json.apps_manifest.only_one}}
+ "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>,
+ {{/}}
+
+ <em>// Add any of these that you need</em>
+ {{#manifest_json.apps_manifest.optional}}
+ "<a href="{{documentation}}">{{name}}</a>": <em>{{*example}}</em>,
+ {{/}}
+}
+</pre>

Powered by Google App Engine
This is Rietveld 408576698