diff --git a/site/generate.sh b/site/generate.sh index 6d8657e57..5dce9966a 100755 --- a/site/generate.sh +++ b/site/generate.sh @@ -163,4 +163,11 @@ popd # copy other static resource files echo '{}' > "$WWW_ROOT_DIR/uctest.json" wget -q --convert-links -O "$WWW_ROOT_DIR/index.html" --convert-links https://www.jenkins.io/templates/updates/index.html +# replace relative paths in URLs and footer by absolute ones, and set the proper attributes for jio-components +sed -i '' \ + -e 's|href="/|href="https://www.jenkins.io/|g' \ + -e 's|property="https://www.jenkins.io"|property="https://updates.jenkins.io"|g' \ + -e 's|sourcepath=""|sourcepath="content/templates/updates.adoc"|' \ + "$WWW_ROOT_DIR/index.html" + cp -av "tmp/tiers.json" "$WWW_ROOT_DIR/tiers.json"