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

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

Issue 68873003: Docserver: Serve docs out of src/ not src/chrome/common/extensions. This allows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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 59f62d1549e00c8c578dec26e90a0a8f3bc2d137..6263871cf3d55a1cf5227cf229131b096b28e27b 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -6,8 +6,8 @@ from operator import itemgetter
import os
import posixpath
-from svn_constants import PUBLIC_TEMPLATE_PATH
import docs_server_utils as utils
+from extensions_paths import PUBLIC_TEMPLATES
def _GetAPICategory(api, documented_apis):
name = api['name']
@@ -51,7 +51,7 @@ class APIListDataSource(object):
def GetDocumentedAPIsForPlatform(names, platform):
public_templates = []
for root, _, files in self._file_system.Walk(posixpath.join(
- PUBLIC_TEMPLATE_PATH, platform)):
+ PUBLIC_TEMPLATES, platform)):
public_templates.extend(
('%s/%s' % (root, name)).lstrip('/') for name in files)
template_names = set(os.path.splitext(name)[0]
@@ -64,8 +64,7 @@ class APIListDataSource(object):
}
def _GenerateAPIDict(self):
- documented_apis = self._cache.GetFromFileListing(
- PUBLIC_TEMPLATE_PATH).Get()
+ documented_apis = self._cache.GetFromFileListing(PUBLIC_TEMPLATES).Get()
api_features = self._features_bundle.GetAPIFeatures().Get()
def FilterAPIs(platform):

Powered by Google App Engine
This is Rietveld 408576698