diff --git a/config.py b/config.py index 38045805f..78d614b80 100644 --- a/config.py +++ b/config.py @@ -19,7 +19,8 @@ def build_requests_session(): CLIENT_WHITELIST = ['SERVER_HOSTNAME', 'PREFERRED_URL_SCHEME', 'MIXPANEL_KEY', 'STRIPE_PUBLISHABLE_KEY', 'ENTERPRISE_LOGO_URL', 'SENTRY_PUBLIC_DSN', 'AUTHENTICATION_TYPE', 'REGISTRY_TITLE', 'REGISTRY_TITLE_SHORT', - 'CONTACT_INFO', 'AVATAR_KIND', 'LOCAL_OAUTH_HANDLER', 'DOCUMENTATION_LOCATION'] + 'CONTACT_INFO', 'AVATAR_KIND', 'LOCAL_OAUTH_HANDLER', 'DOCUMENTATION_LOCATION', + 'DOCUMENTATION_METADATA'] def frontend_visible_config(config_dict): @@ -234,6 +235,7 @@ class DefaultConfig(object): # The location of the Quay documentation. DOCUMENTATION_LOCATION = 'http://docs.quay.io' + DOCUMENTATION_METADATA = 'https://coreos.github.io/quay-docs/search.json' # Experiment: Async garbage collection EXP_ASYNC_GARBAGE_COLLECTION = [] diff --git a/static/js/services/documentation-service.js b/static/js/services/documentation-service.js index c61c76c76..9823e291c 100644 --- a/static/js/services/documentation-service.js +++ b/static/js/services/documentation-service.js @@ -72,7 +72,7 @@ angular.module('quay').factory('DocumentationService', ['Config', '$timeout', fu return; } - $.ajax(Config.DOCUMENTATION_LOCATION + '/search.json') + $.ajax(Config.DOCUMENTATION_METADATA) .done(function(r) { documentationData = r; callback(documentationData);