Skip to content

Commit 7d159fd

Browse files
authored
Use HTTPS links and redirects for docs
Replaces #2200
1 parent 00697ea commit 7d159fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

utilities/create_site.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
git clone --branch gh-pages --single-branch https://github.com/GoogleCloudPlatform/google-cloud-java/ tmp_gh-pages
1616
mkdir -p tmp_gh-pages/$SITE_VERSION_BASE
1717
mvn site -DskipTests -Djava.util.logging.config.file=logging.properties
18-
mvn site:stage --quiet -Djava.util.logging.config.file=logging.properties -DtopSiteURL=http://googlecloudplatform.github.io/google-cloud-java/site/${SITE_VERSION_BASE}/
18+
mvn site:stage --quiet -Djava.util.logging.config.file=logging.properties -DtopSiteURL=https://googlecloudplatform.github.io/google-cloud-java/site/${SITE_VERSION_BASE}/
1919
cd tmp_gh-pages
2020

2121
for dir in ../target/staging/${SITE_VERSION_BASE}*
@@ -25,7 +25,7 @@ done
2525

2626
sed -i "s/{{SITE_VERSION}}/$SITE_VERSION/g" ${SITE_VERSION_BASE}/index.html # Update "Quickstart with Maven" to reflect version change
2727
git add $SITE_VERSION_BASE
28-
echo "<html><head><meta http-equiv=\"refresh\" content=\"0; URL='http://GoogleCloudPlatform.github.io/google-cloud-java/${SITE_VERSION_BASE}/index.html'\" /></head><body></body></html>" > index.html
28+
echo "<html><head><meta http-equiv=\"refresh\" content=\"0; URL='https://googlecloudplatform.github.io/google-cloud-java/${SITE_VERSION_BASE}/index.html'\" /></head><body></body></html>" > index.html
2929
git add index.html
3030
echo "<html><head><script>window.location.replace('/google-cloud-java/${SITE_VERSION_BASE}/apidocs' + location.search)</script></head><body></body></html>" > apidocs/index.html
3131
git add apidocs/index.html

0 commit comments

Comments
 (0)