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

Unified Diff: chrome/common/extensions/docs/server2/api_list_data_source.py

Issue 10832259: Extensions Docs Server: Apps api_index.html shows correct APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/api_list_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_list_data_source.py b/chrome/common/extensions/docs/server2/api_list_data_source.py
index b1a2f388ba7e6af8252e7fdc08bf1ba372fc92a9..03a6219264e5c99f855a282c00ee7544f24139dd 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -9,6 +9,11 @@ from file_system import FileNotFoundError
import third_party.json_schema_compiler.model as model
from docs_server_utils import SanitizeAPIName
+# These files are special cases that shouldn't be in the API list.
+IGNORED_FILES = [
+ 'devtools'
+]
+
class APIListDataSource(object):
""" This class creates a list of chrome.* APIs and chrome.experimental.* APIs
that are used in the api_index.html and experimental.html pages.
@@ -26,7 +31,9 @@ class APIListDataSource(object):
for name in public_templates]
experimental_apis = []
chrome_apis = []
- for i, template_name in enumerate(sorted(template_names)):
+ for template_name in sorted(template_names):
+ if template_name in IGNORED_FILES:
+ continue
if model.UnixName(template_name) in api_names:
if template_name.startswith('experimental'):
experimental_apis.append({
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/converter.py » ('j') | chrome/common/extensions/docs/server2/converter.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698