Skip to content

Commit 2035426

Browse files
committed
Added (?) references for lint levels and groups
1 parent b1ba4a4 commit 2035426

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

util/gh-pages/index.html

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,40 @@
3838
.panel .panel-title-name .anchor { display: none; }
3939
.panel:hover .panel-title-name .anchor { display: inline;}
4040

41+
.label {
42+
padding-top: 0.3em;
43+
padding-bottom: 0.3em;
44+
}
45+
4146
.label-lint-group {
4247
min-width: 8em;
4348
}
4449
.label-lint-level {
4550
min-width: 4em;
4651
}
4752

48-
.lint-level-allow {
53+
.label-lint-level-allow {
4954
background-color: #5cb85c;
5055
}
51-
.lint-level-warn {
56+
.label-lint-level-warn {
5257
background-color: #f0ad4e;
5358
}
54-
.lint-level-deny {
59+
.label-lint-level-deny {
5560
background-color: #d9534f;
5661
}
57-
.lint-level-none {
62+
.label-lint-level-none {
5863
background-color: #777777;
5964
}
6065

66+
.label-doc-folding {
67+
color: #000;
68+
background-color: #fff;
69+
border: 1px solid var(--theme-popup-border);
70+
}
71+
.label-doc-folding:hover {
72+
background-color: #e6e6e6;
73+
}
74+
6175
.lint-doc-md > h3 {
6276
border-top: 1px solid var(--theme-popup-border);
6377
padding: 10px 15px;
@@ -249,7 +263,10 @@ <h1>Clippy's lint list</h1>
249263
<div class="panel-body row filter-panel">
250264
<div class="col-md-6 form-inline">
251265
<div class="form-group form-group-lg">
252-
<p class="h4">Lint levels</p>
266+
<p class="h4">
267+
Lint levels
268+
<a href="https://doc.rust-lang.org/rustc/lints/levels.html">(?)</a>
269+
</p>
253270
<div class="checkbox" ng-repeat="(level, enabled) in levels">
254271
<label class="text-capitalize">
255272
<input type="checkbox" ng-model="levels[level]" />
@@ -260,7 +277,10 @@ <h1>Clippy's lint list</h1>
260277
</div>
261278
<div class="col-md-6 form-inline">
262279
<div class="form-group form-group-lg">
263-
<p class="h4">Lint groups</p>
280+
<p class="h4">
281+
Lint groups
282+
<a href="https://github.com/rust-lang/rust-clippy/#clippy">(?)</a>
283+
</p>
264284
<div class="checkbox" ng-repeat="(group, enabled) in groups">
265285
<label class="text-capitalize">
266286
<input type="checkbox" ng-model="groups[group]" />
@@ -296,12 +316,11 @@ <h2 class="panel-title">
296316
<div class="panel-title-addons">
297317
<span class="label label-lint-group label-default">{{lint.group}}</span>
298318

299-
<span class="label label-lint-level lint-level-{{lint.level}}">{{lint.level}}</span>
319+
<span class="label label-lint-level label-lint-level-{{lint.level}}">{{lint.level}}</span>
300320

301-
<button class="btn btn-default btn-xs">
302-
<span ng-show="open[lint.id]">&minus;</span>
303-
<span ng-hide="open[lint.id]">&plus;</span>
304-
</button>
321+
322+
<span class="label label-doc-folding" ng-show="open[lint.id]">&minus;</span>
323+
<span class="label label-doc-folding" ng-hide="open[lint.id]">&plus;</span>
305324
</div>
306325
</h2>
307326
</header>

0 commit comments

Comments
 (0)