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({ |