Commit 23132c79 authored by DHNishi@gmail.com's avatar DHNishi@gmail.com

Docserver: Fix a bug where undocumented APIs were being shown on the Private APIs page.

NOTRY=true
BUG=304839

Review URL: https://codereview.chromium.org/59773005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233156 0039d316-1c4b-4281-b951-d872f2087c98
parent 95b03b79
......@@ -21,8 +21,8 @@ def _GetAPICategory(api, documented_apis):
class APIListDataSource(object):
""" This class creates a list of chrome.* APIs and chrome.experimental.* APIs
for extensions and apps that are used in the api_index.html and
experimental.html pages.
for extensions and apps that are used in the api_index.html,
experimental.html, and private_apis.html pages.
An API is considered listable if it is listed in _api_features.json,
it has a corresponding HTML file in the public template path, and one of
......@@ -75,8 +75,9 @@ class APIListDataSource(object):
def MakeDictForPlatform(platform):
platform_dict = { 'chrome': [], 'experimental': [], 'private': [] }
for api in FilterAPIs(platform):
category = _GetAPICategory(api, documented_apis[platform])
platform_dict[category].append(api)
if api['name'] in documented_apis[platform]:
category = _GetAPICategory(api, documented_apis[platform])
platform_dict[category].append(api)
for category, apis in platform_dict.iteritems():
platform_dict[category] = sorted(apis, key=itemgetter('name'))
utils.MarkLast(platform_dict[category])
......
application: chrome-apps-doc
version: 2-36-0
version: 2-37-0
runtime: python27
api_version: 1
threadsafe: false
......
......@@ -2,4 +2,4 @@ cron:
- description: Repopulates all cached data.
url: /_cron
schedule: every 5 minutes
target: 2-36-0
target: 2-37-0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment