Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2023-02-01 02:00:59 +0300
committerDavid O'Regan <doregan@gitlab.com>2023-02-01 02:00:59 +0300
commite67b7d42efefac4bbb566299287e62813a517e4d (patch)
tree237da105ddd901760fca55f306e846e23880fc91 /Rules
parentafefd480f4d05b48c9a890911d75a2965678ade8 (diff)
Add Google search forms
Diffstat (limited to 'Rules')
-rw-r--r--Rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rules b/Rules
index bab425bb..2cd3474e 100644
--- a/Rules
+++ b/Rules
@@ -51,7 +51,8 @@ preprocess do
end
end
- config[:search_backend] = ENV['SEARCH_BACKEND'] || 'algolia'
+ config[:search_backend] = ENV.fetch('SEARCH_BACKEND', 'algolia')
+ config[:google_search_key] = ENV.fetch('GOOGLE_SEARCH_KEY', '')
def get_online_versions
uri = URI('https://gitlab.com/gitlab-org/gitlab-docs/-/raw/main/content/versions.json')