Add documentation search to the main search bar

This commit is contained in:
Joseph Schorr 2015-08-03 16:56:32 -04:00
parent db841de26f
commit 8a8955d234
5 changed files with 142 additions and 6 deletions

View file

@ -19,10 +19,10 @@ 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']
'CONTACT_INFO', 'AVATAR_KIND', 'LOCAL_OAUTH_HANDLER', 'DOCUMENTATION_LOCATION']
def getFrontendVisibleConfig(config_dict):
def frontend_visible_config(config_dict):
visible_dict = {}
for name in CLIENT_WHITELIST:
if name.lower().find('secret') >= 0:
@ -232,5 +232,8 @@ class DefaultConfig(object):
'#5254a3', '#6b6ecf', '#9c9ede', '#9ecae1', '#31a354', '#b5cf6b', '#a1d99b',
'#8c6d31', '#ad494a', '#e7ba52', '#a55194']
# The location of the Quay documentation.
DOCUMENTATION_LOCATION = 'http://docs.quay.io'
# Experiment: Async garbage collection
EXP_ASYNC_GARBAGE_COLLECTION = []