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>2023-04-27 17:44:04 +0300
committerSarah German <sgerman@gitlab.com>2023-04-27 17:44:04 +0300
commit6e1e712659fdd4ccff98f279e80d5ac43c058e46 (patch)
treea5ff3c5916c89d3e16b54b5308c03aadcb43efb1
parent59c3837d362b97314f86bcf9c2ed48ea17730efe (diff)
parent6db545881114771f2ab062afb5c7c87fbdbab9d9 (diff)
Merge branch 'axil-fix-normalize-script-replace' into 'main'
Fix some sed substitutions in post-process script See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3798 Merged-by: Sarah German <sgerman@gitlab.com> Approved-by: Sarah German <sgerman@gitlab.com> Co-authored-by: Achilleas Pipinellis <axil@gitlab.com>
-rwxr-xr-xscripts/normalize-links.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/normalize-links.sh b/scripts/normalize-links.sh
index 417c1bd0..442a5f43 100755
--- a/scripts/normalize-links.sh
+++ b/scripts/normalize-links.sh
@@ -65,10 +65,10 @@ find "${TARGET}/$VER" -type f -name '*.html' -print0 | xargs -0 "$SED" -i -e 's|
-e 's|href="/omnibus/|href="/'"$VER"'/omnibus/|g' \
-e 's|href="/charts/|href="/'"$VER"'/charts/|g' \
-e 's|href="/operator/|href="/'"$VER"'/operator/|g' \
- -e 's|href="/assets/|href="/'"$VER"'/assets/|g' \
- -e 's|href="/frontend/|href="/'"$VER"'/frontend/|g' \
+ -e 's|="/assets/|="/'"$VER"'/assets/|g' \
+ -e 's|="/frontend/|="/'"$VER"'/frontend/|g' \
-e 's|<a href="/">|<a href="/'"$VER"'/">|g' \
- -e 's|href="/opensearch.xml|href="/'"$VER"'/opensearch.xml|g'
+ -e 's|="/opensearch.xml|="/'"$VER"'/opensearch.xml|g'
# shellcheck disable=2059
printf "${COLOR_GREEN}INFO: Replacing relative URLs in $TARGET/$VER for CSS files...${COLOR_RESET}\n"