Skip to content

Commit 1feb0d7

Browse files
committed
Applied PR suggestions
1 parent f7dc234 commit 1feb0d7

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

util/gh-pages/index.html

+3-13
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<meta charset="UTF-8"/>
1212
<meta name="viewport" content="width=device-width, initial-scale=1"/>
1313

14-
<title>Clippy's lint list</title>
14+
<title>Clippy Lints</title>
1515

1616
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"/>
1717
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/styles/github.min.css"/>
@@ -246,7 +246,7 @@
246246

247247
<div class="container" ng-app="clippy" ng-controller="lintList">
248248
<div class="page-header">
249-
<h1>Clippy's lint list</h1>
249+
<h1>Clippy Lints</h1>
250250
</div>
251251

252252
<noscript>
@@ -495,18 +495,8 @@ <h2 class="panel-title">
495495
// Get data
496496
$scope.open = {};
497497
$scope.loading = true;
498-
// This will be used to jump into the source code of the version that this
499-
// documentation is for. The version will be queried from the path as this
500-
// works for all doc versions (master, beta, rust-1.52.0) with the exception
501-
// of "stable" asa this is neither a tag or branch in our repo.
502-
//
503-
// The dirty hack is to link against beta in that case as that is the closes
504-
// known branch to the current stable version. (The version would need to be
505-
// queried)
498+
// This will be used to jump into the source code of the version that this documentation is for.
506499
$scope.docVersion = window.location.pathname.split('/')[2];
507-
if ($scope.docVersion === "stable") {
508-
$scope.docVersion = "beta";
509-
}
510500

511501
if (window.location.hash.length > 1) {
512502
$scope.search = window.location.hash.slice(1);

0 commit comments

Comments
 (0)