Skip to content

Commit baf3680

Browse files
committed
Auto merge of rust-lang#10876 - flip1995:gh-pages-cleanup-repo, r=flip1995
Adapt versions.html file to cleaned up gh-pages Companion PR to rust-lang#10875 changelog: Remove legacy v0.0.* versions from Clippy repository and documentation. Must be merged together with rust-lang#10875 (best with a closed tree) r? `@Alexendoo` (because you were randomly selected on the other PR :P)
2 parents 3217f8a + 60b7fde commit baf3680

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

util/gh-pages/versions.html

+3-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 class="panel-title">
3636
<ul class="list-group">
3737
<a class="list-group-item" ng-repeat="version in data | orderBy:versionOrder:true"
3838
href="./{{version}}/index.html">
39-
{{normalizeVersionDisplay(version)}}
39+
{{version}}
4040
</a>
4141
</ul>
4242
</article>
@@ -54,18 +54,15 @@ <h3 class="panel-title">
5454
.controller('docVersions', function ($scope, $http) {
5555
$scope.loading = true;
5656

57-
$scope.normalizeVersionDisplay = function(v) {
58-
return v.replace(/^v/, '');
59-
};
60-
6157
$scope.normalizeVersion = function(v) {
62-
return v.replace(/^v/, '').replace(/^rust-/, '');
58+
return v.replace(/^rust-/, '');
6359
};
6460

6561
$scope.versionOrder = function(v) {
6662
if (v === 'master') { return Infinity; }
6763
if (v === 'stable') { return Number.MAX_VALUE; }
6864
if (v === 'beta') { return Number.MAX_VALUE - 1; }
65+
if (v === 'pre-1.29.0') { return Number.MIN_VALUE; }
6966

7067
return $scope.normalizeVersion(v)
7168
.split('.')

0 commit comments

Comments
 (0)