diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2023-01-31 14:13:33 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2023-01-31 14:13:33 +0300 |
commit | 5a3b888f17da3485789fd430572e771a1ca54e3d (patch) | |
tree | 9f239b75c162a8f6112e5dc0de560eedd40bd5b8 /Rules | |
parent | 3ea008cee917bc67bc324e1ec292f861455bf5f6 (diff) |
Use versions.json in repository in case Pages are down
Diffstat (limited to 'Rules')
-rw-r--r-- | Rules | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ preprocess do config[:search_backend] = ENV['SEARCH_BACKEND'] || 'algolia' def get_online_versions - uri = URI('https://docs.gitlab.com/versions.json') + uri = URI('https://gitlab.com/gitlab-org/gitlab-docs/-/raw/main/content/versions.json') response = Net::HTTP.get(uri) parsed = JSON.parse(response, symbolize_names: true) parsed[0] |