1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 02:37:11 +00:00

Merge pull request #383 from marquiz/documentation/redirect

scripts/update-gh-pages: redirect to "stable" documentation
This commit is contained in:
Kubernetes Prow Robot 2020-11-04 07:52:04 -08:00 committed by GitHub
commit 6c6a682d23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,6 +125,10 @@ _stable=`(ls -d1 v*/ || :) | sort -n | tail -n1`
# Detect existing versions from the gh-pages branch
create_versions_js > versions.js
cat > index.html << EOF
<meta http-equiv="refresh" content="0; URL='stable/'"/>
EOF
if [ -z "`git status --short`" ]; then
echo "No new content, gh-pages branch already up-to-date"
exit 0