-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to go through clippy lints page without javascript #13539
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: "-"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be −
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:
details
andsummary
tags. Problem with this approach is that the web browser search may open thedetails
tags automatically if content matching it is inside. From a previous discussion with @Alexendoo, it seems to not be a desired behaviour.label
and 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