Skip to content

Commit 175cf1d

Browse files
authored
Create custom 404 page for Cloud Connector (#1899)
1 parent 5f6a92b commit 175cf1d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ jobs:
212212
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}/${version}" "gs://${BUCKET}/docs/$bucket_path/operate/${product}/${version}"
213213
fi
214214
done
215+
216+
# Prepare custom 404 page for Cloud Connector
217+
hugo_root_path="docs/latest"
218+
sed -i "s#baseURL = \"https://redis.io\"#baseURL = \"https://redis.io/$hugo_root_path\"#g" config.toml
219+
make hugo
220+
sed -i "s#/docs/latest/scss/#https://storage.googleapis.com/$BUCKET/docs/latest/scss/#g" public/404.html
221+
sed -i "s#/docs/latest/css/#https://storage.googleapis.com/$BUCKET/docs/latest/css/#g" public/404.html
222+
gsutil cp public/404.html gs://$BUCKET/docs/
215223
fi
216224
217225
if [[ "$bucket_path" == staging/* ]]

0 commit comments

Comments
 (0)