Skip to content

Commit 9a5f279

Browse files
authored
Merge pull request #2280 from GoogleCloudPlatform/tswast-patch-1
Use HTTPS links and redirects for docs
2 parents 58e76bb + 609a799 commit 9a5f279

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
@@ -21,7 +21,7 @@ rm -rf tmp_gh-pages/latest
2121
mkdir tmp_gh-pages/latest
2222
for version_base in ${version_bases[@]}
2323
do
24-
mvn site:stage --quiet -Djava.util.logging.config.file=logging.properties -DtopSiteURL=http://googlecloudplatform.github.io/google-cloud-java/site/${version_base}/
24+
mvn site:stage --quiet -Djava.util.logging.config.file=logging.properties -DtopSiteURL=https://googlecloudplatform.github.io/google-cloud-java/site/${version_base}/
2525
cd tmp_gh-pages
2626
cp -r ../target/staging/*/* $version_base
2727
sed -i "s/{{SITE_VERSION}}/$SITE_VERSION/g" ${version_base}/index.html # Update "Quickstart with Maven" to reflect version change
@@ -30,7 +30,7 @@ do
3030
done
3131

3232
cd tmp_gh-pages
33-
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
33+
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
3434
git add index.html
3535
echo "<html><head><script>window.location.replace('/google-cloud-java/${SITE_VERSION_BASE}/apidocs' + location.search)</script></head><body></body></html>" > apidocs/index.html
3636
git add apidocs/index.html

0 commit comments

Comments
 (0)