Skip to content

Commit 974580e

Browse files
committed
Making deprecated lints look dead
1 parent 2035426 commit 974580e

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

util/gh-pages/index.html

+18-4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
}
6262
.label-lint-level-none {
6363
background-color: #777777;
64+
opacity: 0.5;
65+
}
66+
67+
.label-group-deprecated {
68+
opacity: 0.5;
6469
}
6570

6671
.label-doc-folding {
@@ -314,7 +319,7 @@ <h2 class="panel-title">
314319
</div>
315320

316321
<div class="panel-title-addons">
317-
<span class="label label-lint-group label-default">{{lint.group}}</span>
322+
<span class="label label-lint-group label-default label-group-{{lint.group}}">{{lint.group}}</span>
318323

319324
<span class="label label-lint-level label-lint-level-{{lint.level}}">{{lint.level}}</span>
320325

@@ -442,7 +447,7 @@ <h2 class="panel-title">
442447
cargo: true,
443448
complexity: true,
444449
correctness: true,
445-
deprecated: true,
450+
deprecated: false,
446451
nursery: true,
447452
pedantic: true,
448453
perf: true,
@@ -490,9 +495,18 @@ <h2 class="panel-title">
490495
// Get data
491496
$scope.open = {};
492497
$scope.loading = true;
493-
// This will be used to jump into the source code of the version that this documentation is for.
494-
// TODO xFrednet 2021-05-19: how do we want to deal with "beta"?
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)
495506
$scope.docVersion = window.location.pathname.split('/')[2];
507+
if ($scope.docVersion === "stable") {
508+
$scope.docVersion = "beta";
509+
}
496510

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

0 commit comments

Comments
 (0)