Skip to content

Commit e14ee6c

Browse files
committed
fix: Support web components for nav and footer on jenkins.io
jenkins-infra/jenkins.io#5668 (comment)
1 parent c5841e6 commit e14ee6c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
WWW_ROOT_DIR="${WWW_ROOT_DIR:-${1:-./www2}}"
4+
SELF_URL="${SELF_URL:-${2:-https://updates.jenkins.io}}"
5+
6+
wget -q --convert-links -O "$WWW_ROOT_DIR/index.html" --convert-links https://www.jenkins.io/templates/updates/index.html
7+
sed -i -e "s|<jio-navbar.*/jio-navbar>|<jio-navbar class='fixed-top' id='ji-toolbar' property='${SELF_URL}'></jio-navbar>|g" "$WWW_ROOT_DIR/index.html"
8+
sed -i -e "s|<jio-footer.*/jio-footer>|<jio-footer property='${SELF_URL}'></jio-footer>|g" "$WWW_ROOT_DIR/index.html"

site/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,5 @@ popd
165165

166166
# copy other static resource files
167167
echo '{}' > "$WWW_ROOT_DIR/uctest.json"
168-
wget -q --convert-links -O "$WWW_ROOT_DIR/index.html" --convert-links https://www.jenkins.io/templates/updates/index.html
168+
"${MAIN_DIR}/site/generate-jenkins-io-template.sh" "$WWW_ROOT_DIR" "https://updates.jenkins.io"
169169
cp -av "tmp/tiers.json" "$WWW_ROOT_DIR/tiers.json"

0 commit comments

Comments
 (0)