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:
authorAchilleas Pipinellis <axil@gitlab.com>2023-01-31 14:13:33 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2023-01-31 14:13:33 +0300
commit5a3b888f17da3485789fd430572e771a1ca54e3d (patch)
tree9f239b75c162a8f6112e5dc0de560eedd40bd5b8 /Rules
parent3ea008cee917bc67bc324e1ec292f861455bf5f6 (diff)
Use versions.json in repository in case Pages are down
Diffstat (limited to 'Rules')
-rw-r--r--Rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules b/Rules
index 2485a898..bab425bb 100644
--- a/Rules
+++ b/Rules
@@ -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]