Skip to content

Commit

Permalink
Rename current -> stable
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Feb 14, 2020
1 parent 0533cff commit 0f79182
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ cp util/gh-pages/index.html out/master
python3 ./util/export.py out/master/lints.json

if [[ -n $TAG_NAME ]]; then
echo "Save the doc for the current tag ($TAG_NAME) and point current/ to it"
echo "Save the doc for the current tag ($TAG_NAME) and point stable/ to it"
cp -r out/master "out/$TAG_NAME"
rm -f out/current
ln -s "$TAG_NAME" out/current
rm -f out/stable
ln -s "$TAG_NAME" out/stable
fi

# Generate version index that is shown as root index page
Expand Down
2 changes: 1 addition & 1 deletion util/gh-pages/versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h3 class="panel-title">

$scope.versionOrder = function(v) {
if (v === 'master') { return Infinity; }
if (v === 'current') { return Number.MAX_VALUE; }
if (v === 'stable') { return Number.MAX_VALUE; }

return $scope.normalizeVersion(v)
.split('.')
Expand Down
2 changes: 1 addition & 1 deletion util/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def key(v):
if v == 'master':
return float('inf')
if v == 'current':
if v == 'stable':
return sys.maxsize

v = v.replace('v', '').replace('rust-', '')
Expand Down

0 comments on commit 0f79182

Please sign in to comment.