File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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/* ]]
You can’t perform that action at this time.
0 commit comments