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

scripts/update-gh-pages: redirect to "stable" documentation

Update update-gh-pages.sh to manage the index.html in the root of the
main gh-pages site. Make the index page to redirect to the documentation
of the latest stable version.
This commit is contained in:
Markus Lehtonen 2020-11-04 17:45:25 +02:00
parent 1814766263
commit 2dc3f0f7ab

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