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

Unified Diff: chrome/common/extensions/docs/server2/templates/articles/api_index.html

Issue 10834144: Extensions Docs Server: Split apps from extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 8 years, 4 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/server2/templates/articles/api_index.html
diff --git a/chrome/common/extensions/docs/server2/templates/articles/api_index.html b/chrome/common/extensions/docs/server2/templates/articles/api_index.html
index 748a264ae16725ba2cfe39428c2732e881aafc42..3b1f7b930e26e49f69468d7c2c02dd8746e8d337 100644
--- a/chrome/common/extensions/docs/server2/templates/articles/api_index.html
+++ b/chrome/common/extensions/docs/server2/templates/articles/api_index.html
@@ -1,15 +1,17 @@
<h1 class="page_title">chrome.* APIs</h1>
-<p class="doc-family extensions">
-Chrome provides APIs such as
-<code>chrome.bookmarks</code> and <code>chrome.tab</code>
-so that extensions can interact with the browser.
-</p>
-
+{{?is_apps}}
<p class="doc-family apps">
Chrome provides many special-purpose APIs like
<code>chrome.runtime</code> and <code>chrome.alarms</code>
to packaged apps.
</p>
+{{:is_apps}}
+<p class="doc-family extensions">
+Chrome provides APIs such as
+<code>chrome.bookmarks</code> and <code>chrome.tab</code>
+so that extensions can interact with the browser.
+</p>
+{{/is_apps}}
<h2 id="supported">Supported APIs</h2>
@@ -18,9 +20,15 @@ Here are the supported chrome.* APIs:
</p>
<ul>
- {{#api_list.chrome}}
+ {{?is_apps}}
+ {{#api_list.apps.chrome}}
+ <li><a href="{{name}}.html">{{name}}</a></li>
+ {{/}}
+ {{:is_apps}}
+ {{#api_list.extensions.chrome}}
<li><a href="{{name}}.html">{{name}}</a></li>
{{/}}
+ {{/is_apps}}
</ul>
<h2 id="experimental">Experimental APIs</h2>
@@ -44,6 +52,8 @@ then you pass a callback function into the method.
For more information, watch this video:
</p>
+{{^is_apps}}
<p class="doc-family extensions">
<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/bmxr75CV36A?rel=0" frameborder="0" allowfullscreen></iframe>
</p>
+{{/is_apps}}

Powered by Google App Engine
This is Rietveld 408576698