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:
commit
6c6a682d23
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue