Rename current -> stable
This commit is contained in:
6
.github/deploy.sh
vendored
6
.github/deploy.sh
vendored
@@ -11,10 +11,10 @@ cp util/gh-pages/index.html out/master
|
|||||||
python3 ./util/export.py out/master/lints.json
|
python3 ./util/export.py out/master/lints.json
|
||||||
|
|
||||||
if [[ -n $TAG_NAME ]]; then
|
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"
|
cp -r out/master "out/$TAG_NAME"
|
||||||
rm -f out/current
|
rm -f out/stable
|
||||||
ln -s "$TAG_NAME" out/current
|
ln -s "$TAG_NAME" out/stable
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate version index that is shown as root index page
|
# Generate version index that is shown as root index page
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
$scope.versionOrder = function(v) {
|
$scope.versionOrder = function(v) {
|
||||||
if (v === 'master') { return Infinity; }
|
if (v === 'master') { return Infinity; }
|
||||||
if (v === 'current') { return Number.MAX_VALUE; }
|
if (v === 'stable') { return Number.MAX_VALUE; }
|
||||||
|
|
||||||
return $scope.normalizeVersion(v)
|
return $scope.normalizeVersion(v)
|
||||||
.split('.')
|
.split('.')
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ from lintlib import log
|
|||||||
def key(v):
|
def key(v):
|
||||||
if v == 'master':
|
if v == 'master':
|
||||||
return float('inf')
|
return float('inf')
|
||||||
if v == 'current':
|
if v == 'stable':
|
||||||
return sys.maxsize
|
return sys.maxsize
|
||||||
|
|
||||||
v = v.replace('v', '').replace('rust-', '')
|
v = v.replace('v', '').replace('rust-', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user