Allow to go through clippy lints page without javascript#13539
Allow to go through clippy lints page without javascript#13539bors merged 2 commits intorust-lang:masterfrom
Conversation
util/gh-pages/script.js
Outdated
| }); | ||
| }; | ||
| onEachLazy(elem.querySelectorAll("pre > code.language-rust:not(.highlighted)"), call); | ||
| onEachLazy(elem.querySelectorAll("pre > code.language-no_run:not(.highlighted)"), call); |
There was a problem hiding this comment.
Oh I see. Gonna update then.
a0c56a5 to
147d2a4
Compare
|
Fixed the bug. I took an approach a little bit different by using the |
|
It should use |
147d2a4 to
d60d145
Compare
|
Changed the code to use |
Alexendoo
left a comment
There was a problem hiding this comment.
Looks good with the minus sign change, the configuration defaults are unaligned but if I merge with master that's fixed so looks unrelated to this change
util/gh-pages/style.css
Outdated
| content: "+"; | ||
| } | ||
| article > input[type="checkbox"]:checked + label .label-doc-folding::before { | ||
| content: "-"; |
d60d145 to
da19d47
Compare
|
Fixed the minus sign. |
|
👍 @bors r+ |
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #13536.
This is the follow-up of #13269.
This PR makes it possible to expand/collapse lints (individually) without JS. To achieve this result, there are two ways:
detailsandsummarytags. Problem with this approach is that the web browser search may open thedetailstags automatically if content matching it is inside. From a previous discussion with @Alexendoo, it seems to not be a desired behaviour.labeland a checkbox where the checkbox is in fact hidden. Then it's just a matter of CSS.r? @Alexendoo
changelog: Allow to go through clippy lints page without JS