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:
authorAchilleas Pipinellis <axil@gitlab.com>2018-03-23 18:29:32 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-03-23 18:29:32 +0300
commit5fbf8805794d0c1d2aaf24cf1ffba075d7568284 (patch)
tree94abf775c69dada0aa3070f1237ff90e39121787
parente701ed398ab9b2ac252742a056ec4c232ff75a71 (diff)
Add opensearch.xml to normalize script
-rwxr-xr-xscripts/normalize-links.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/normalize-links.sh b/scripts/normalize-links.sh
index 8eca82cf..6189d5bf 100755
--- a/scripts/normalize-links.sh
+++ b/scripts/normalize-links.sh
@@ -27,8 +27,8 @@ find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/runner/#="
find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/omnibus/#="/'"$VER"'/omnibus/#g'
find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/assets/#="/'"$VER"'/assets/#g'
find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#<a href="/">#<a href="/'"$VER"'/">#g'
-sed -i 's#/sitemap.xml#/'"$VER"'/sitemap.xml/#g' ${TARGET}/robots.txt
-sed -i 's#docs.gitlab.com/#docs.gitlab.com/'"$VER"'/#g' ${TARGET}/sitemap.xml
+find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/opensearch.xml#="/'"$VER"'/opensearch.xml#g'
+find ${TARGET} -type f -name 'sitemap.xml' -print0 | xargs -0 sed -i 's#docs.gitlab.com/#docs.gitlab.com/'"$VER"'/#g'
# Symlink all README.html to index.html
for i in `find ${TARGET}/${VER} -name README.html`; do ln -sf README.html $(dirname $i)/index.html; done