|
61 | 61 | }
|
62 | 62 | .label-lint-level-none {
|
63 | 63 | background-color: #777777;
|
| 64 | + opacity: 0.5; |
| 65 | + } |
| 66 | + |
| 67 | + .label-group-deprecated { |
| 68 | + opacity: 0.5; |
64 | 69 | }
|
65 | 70 |
|
66 | 71 | .label-doc-folding {
|
@@ -314,7 +319,7 @@ <h2 class="panel-title">
|
314 | 319 | </div>
|
315 | 320 |
|
316 | 321 | <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> |
318 | 323 |
|
319 | 324 | <span class="label label-lint-level label-lint-level-{{lint.level}}">{{lint.level}}</span>
|
320 | 325 |
|
@@ -442,7 +447,7 @@ <h2 class="panel-title">
|
442 | 447 | cargo: true,
|
443 | 448 | complexity: true,
|
444 | 449 | correctness: true,
|
445 |
| - deprecated: true, |
| 450 | + deprecated: false, |
446 | 451 | nursery: true,
|
447 | 452 | pedantic: true,
|
448 | 453 | perf: true,
|
@@ -490,9 +495,18 @@ <h2 class="panel-title">
|
490 | 495 | // Get data
|
491 | 496 | $scope.open = {};
|
492 | 497 | $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) |
495 | 506 | $scope.docVersion = window.location.pathname.split('/')[2];
|
| 507 | + if ($scope.docVersion === "stable") { |
| 508 | + $scope.docVersion = "beta"; |
| 509 | + } |
496 | 510 |
|
497 | 511 | if (window.location.hash.length > 1) {
|
498 | 512 | $scope.search = window.location.hash.slice(1);
|
|
0 commit comments