summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-09 00:37:42 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-09 00:37:42 +0000
commit6222bee655845e6e4573fa7408014075d80947f2 (patch)
treef98f556a410764309737db37fe687acea3dc02d3 /chrome/common
parentcf4375afc8ad2f2566af2665330d60d0a52beda3 (diff)
downloadchromium_src-6222bee655845e6e4573fa7408014075d80947f2.zip
chromium_src-6222bee655845e6e4573fa7408014075d80947f2.tar.gz
chromium_src-6222bee655845e6e4573fa7408014075d80947f2.tar.bz2
Extension Doc Changes (no building or testable changes).
Minor fix for api page generator to allow "experiment.*" modules to be documented TBR=kathyw,aa Review URL: http://codereview.chromium.org/587016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rwxr-xr-xchrome/common/extensions/docs/js/api_page_generator.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/common/extensions/docs/js/api_page_generator.js b/chrome/common/extensions/docs/js/api_page_generator.js
index d00f546..8b143ce 100755
--- a/chrome/common/extensions/docs/js/api_page_generator.js
+++ b/chrome/common/extensions/docs/js/api_page_generator.js
@@ -78,8 +78,8 @@ function extend(obj, obj2) {
* render the template from |pageData|.
*/
function renderPage() {
- var pathParts = document.location.href.split(/\/|\./);
- pageBase = pathParts[pathParts.length - 2];
+ // The page name minus the ".html" extension.
+ pageBase = document.location.href.match(/\/([^\/]*)\.html$/)[1];
if (!pageBase) {
alert("Empty page name for: " + document.location.href);
return;
@@ -169,6 +169,10 @@ function fetchContent(url, onSuccess, onError) {
function renderTemplate() {
schema.each(function(mod) {
if (mod.namespace == pageBase) {
+ // Do not render page for modules which are marked as "nodoc": true.
+ if (mod.nodoc) {
+ return;
+ }
// This page is an api page. Setup types and apiDefinition.
module = mod;
apiModuleName = "chrome." + module.namespace;