summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 02:22:55 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 02:22:55 +0000
commit4561ece2d6ae630f6a6fbd6290b629e91c28d067 (patch)
tree77cfdec73beb4b2c04c495963ef932604f6e3b2d /chrome/common
parent04c4cd34e8cbc163215333f57e6698b8a166cf4b (diff)
downloadchromium_src-4561ece2d6ae630f6a6fbd6290b629e91c28d067.zip
chromium_src-4561ece2d6ae630f6a6fbd6290b629e91c28d067.tar.gz
chromium_src-4561ece2d6ae630f6a6fbd6290b629e91c28d067.tar.bz2
Extension Doc Changes (no building or testable changes)
Auto generate api_index.html stable and experimental modules. BUG=35920 TBR=aa, kathyw Review URL: http://codereview.chromium.org/608024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rwxr-xr-xchrome/common/extensions/api/extension_api.json2
-rw-r--r--chrome/common/extensions/docs/api_index.html11
-rwxr-xr-xchrome/common/extensions/docs/js/api_page_generator.js16
-rw-r--r--chrome/common/extensions/docs/static/api_index.html11
4 files changed, 22 insertions, 18 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 562ada0..3962f7a 100755
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -2080,6 +2080,7 @@
},
{
"namespace": "devtools",
+ "nodoc": "true",
"types": [],
"functions": [
{
@@ -2146,6 +2147,7 @@
},
{
"namespace": "test",
+ "nodoc": true,
"types": [],
"functions": [
{
diff --git a/chrome/common/extensions/docs/api_index.html b/chrome/common/extensions/docs/api_index.html
index 492e6f9..d9c8ab1 100644
--- a/chrome/common/extensions/docs/api_index.html
+++ b/chrome/common/extensions/docs/api_index.html
@@ -275,13 +275,7 @@ Here are the supported chrome.* APIs:
</p>
<ul>
- <li><a href="bookmarks.html">bookmarks</a></li>
- <li><a href="browserAction.html">browserAction</a></li>
- <li><a href="extension.html">extension</a></li>
- <li><a href="i18n.html">i18n</a></li>
- <li><a href="pageAction.html">pageAction</a></li>
- <li><a href="tabs.html">tabs</a></li>
- <li><a href="windows.html">windows</a></li>
+ <li><a href="bookmarks.html" js="">bookmarks</a></li><li><a href="browserAction.html" js="">browserAction</a></li><li><a href="extension.html" js="">extension</a></li><li><a href="i18n.html" js="">i18n</a></li><li><a href="pageAction.html" js="">pageAction</a></li><li><a href="tabs.html" js="">tabs</a></li><li><a href="windows.html" js="">windows</a></li>
</ul>
<h2 id="experimental">Experimental APIs</h2>
@@ -292,8 +286,7 @@ on the following experimental APIs:
</p>
<ul>
- <li><a href="experimental.history.html">experimental.history</a></li>
- <li><a href="experimental.processes.html">experimental.processes</a></li>
+ <li><a href="experimental.history.html" js="">experimental.history</a></li><li><a href="experimental.processes.html" js="">experimental.processes</a></li>
</ul>
<p class="caution">
diff --git a/chrome/common/extensions/docs/js/api_page_generator.js b/chrome/common/extensions/docs/js/api_page_generator.js
index 3885c02..c1adb11 100755
--- a/chrome/common/extensions/docs/js/api_page_generator.js
+++ b/chrome/common/extensions/docs/js/api_page_generator.js
@@ -268,6 +268,22 @@ function selectCurrentPageOnLeftNav() {
* The jstProcess() will call out to these functions from within the page template
*/
+function stableAPIs() {
+ return schema.filter(function(module) {
+ return !module.nodoc && module.namespace.indexOf("experimental") < 0;
+ }).map(function(module) {
+ return module.namespace;
+ }).sort();
+}
+
+function experimentalAPIs() {
+ return schema.filter(function(module) {
+ return !module.nodoc && module.namespace.indexOf("experimental") == 0;
+ }).map(function(module) {
+ return module.namespace;
+ }).sort();
+}
+
function getDataFromPageHTML(id) {
var node = document.getElementById(id);
if (!node)
diff --git a/chrome/common/extensions/docs/static/api_index.html b/chrome/common/extensions/docs/static/api_index.html
index a597796..2b7cf5c 100644
--- a/chrome/common/extensions/docs/static/api_index.html
+++ b/chrome/common/extensions/docs/static/api_index.html
@@ -14,13 +14,7 @@ Here are the supported chrome.* APIs:
</p>
<ul>
- <li><a href="bookmarks.html">bookmarks</a></li>
- <li><a href="browserAction.html">browserAction</a></li>
- <li><a href="extension.html">extension</a></li>
- <li><a href="i18n.html">i18n</a></li>
- <li><a href="pageAction.html">pageAction</a></li>
- <li><a href="tabs.html">tabs</a></li>
- <li><a href="windows.html">windows</a></li>
+ <li jsselect="stableAPIs();"><a jsvalues=".href: $this + '.html'" jscontent="$this" href="bookmarks.html" js>bookmarks</a></li>
</ul>
<h2 id="experimental">Experimental APIs</h2>
@@ -31,8 +25,7 @@ on the following experimental APIs:
</p>
<ul>
- <li><a href="experimental.history.html">experimental.history</a></li>
- <li><a href="experimental.processes.html">experimental.processes</a></li>
+ <li jsselect="experimentalAPIs();"><a jsvalues=".href: $this + '.html'" jscontent="$this" href="experimental.history.html" js>experimental.history</a></li>
</ul>
<p class="caution">