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
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2022-12-20 03:02:55 +0300
committerMarcel Amirault <mamirault@gitlab.com>2022-12-20 03:02:55 +0300
commit6663cbc68abfb00acc2729ae5044f0336d2ed77f (patch)
tree955f763cae005c51b27daf0818ee3f7dee7fff26 /scripts
parent9c403d9fdee63529873c80a452563af09db3b5a7 (diff)
Use relative URLs for Algolia results
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/review-replace-urls.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/review-replace-urls.sh b/scripts/review-replace-urls.sh
index 108b763a..1e0346a4 100755
--- a/scripts/review-replace-urls.sh
+++ b/scripts/review-replace-urls.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Note this uses linux-specific (GNU) find syntax, it does not work with MacOS (BSD) find syntax because of the usage of the 'regextype' flag (and possibly other reasons)
-find public/ -type f -regextype egrep -iregex ".*\.(html|js|css|json|xml|txt)" -exec sed --in-place "s#https\?://docs.gitlab.com#https://$CI_COMMIT_REF_SLUG$REVIEW_SLUG.docs.gitlab-review.app#g" "{}" +;
+find public/ -type f -regextype egrep -iregex ".*\.(html|css|json|xml|txt)" -exec sed --in-place "s#https\?://docs.gitlab.com#https://$CI_COMMIT_REF_SLUG$REVIEW_SLUG.docs.gitlab-review.app#g" "{}" +;