diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/normalize-links.sh | 4 |
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 |