Skip to content

Commit 4aeef31

Browse files
authored
1 parent a63ffd8 commit 4aeef31

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

site/generate.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,11 @@ popd
163163
# copy other static resource files
164164
echo '{}' > "$WWW_ROOT_DIR/uctest.json"
165165
wget -q --convert-links -O "$WWW_ROOT_DIR/index.html" --convert-links https://www.jenkins.io/templates/updates/index.html
166+
# replace relative paths in URLs and footer by absolute ones, and set the proper attributes for jio-components
167+
sed -i '' \
168+
-e 's|href="/|href="https://www.jenkins.io/|g' \
169+
-e 's|property="https://www.jenkins.io"|property="https://updates.jenkins.io"|g' \
170+
-e 's|sourcepath=""|sourcepath="content/templates/updates.adoc"|' \
171+
"$WWW_ROOT_DIR/index.html"
172+
166173
cp -av "tmp/tiers.json" "$WWW_ROOT_DIR/tiers.json"

0 commit comments

Comments
 (0)