<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Clippy</title>
+ <title>Clippy lints documentation</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"/>
<style>
<ul class="list-group">
<a class="list-group-item" ng-repeat="version in data | orderBy:versionOrder:true"
href="./{{version}}/index.html">
- {{normalizeVersion(version)}}
+ {{normalizeVersionDisplay(version)}}
</a>
</ul>
</article>
.controller('docVersions', function ($scope, $http) {
$scope.loading = true;
- $scope.normalizeVersion = function(v) {
+ $scope.normalizeVersionDisplay = function(v) {
return v.replace(/^v/, '');
};
+ $scope.normalizeVersion = function(v) {
+ return v.replace(/^v/, '').replace(/^rust-/, '');
+ };
+
$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('.')