Skip to content
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

Clippy going dark: Adding a dark theme to Clippy's lint list #7030

Merged
merged 1 commit into from
Apr 4, 2021

Conversation

xFrednet
Copy link
Member

@xFrednet xFrednet commented Apr 4, 2021

This PR adds the MdBook color themes to the lint list of Clippy. Well at least an adaption of these themes.

Here are some beautiful screenshots:

light theme
image

Rust theme
image

Coal theme
image

Navy theme
image

Ayu theme
image

The theme is also stored in the browser to ensure that the next session applies the theme and doesn't burn your eyes out.

cc: @matthiaskrgr


Closes #6877

changelog: Clippy's lint list now supports themes

@rust-highfive
Copy link

r? @llogiq

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 4, 2021
@llogiq
Copy link
Contributor

llogiq commented Apr 4, 2021

Thank you! @bors r+

@bors
Copy link
Collaborator

bors commented Apr 4, 2021

📌 Commit e25b106 has been approved by llogiq

@bors
Copy link
Collaborator

bors commented Apr 4, 2021

⌛ Testing commit e25b106 with merge 6bb608c...

@bors
Copy link
Collaborator

bors commented Apr 4, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing 6bb608c to master...

@bors bors merged commit 6bb608c into rust-lang:master Apr 4, 2021
@xFrednet
Copy link
Member Author

xFrednet commented Apr 4, 2021

Well... I don't know why, but it seems like the theme isn't working on the site after the merge 😕 here. I'll try to see if the fix is easy or submit a revert PR until the problem is figured out -.-

@xFrednet
Copy link
Member Author

xFrednet commented Apr 4, 2021

It turns out that gitcdn.xyz is blocked due to SSL_ERROR_BAD_CERT_DOMAIN that sadly didn't occur during local development.

bors added a commit that referenced this pull request Apr 5, 2021
Quick fix for the updated website theaming to access the correct css files

This fixes a problem from #7030 that the service used to access css files was blocked by GitHub pages due to `SSL_ERROR_BAD_CERT_DOMAIN`. The css file loading worked fine during local development. The browser probably disabled some security options due to the local address.

This fix works locally and should also work online as it references the direct css files used by the [mdBook User Guide](https://rust-lang.github.io/mdBook/index.html) the disadvantage of this is that refactorings within the mdBook project can have effects on the theme loading of Clippy. This PR is therefor more meant as a quick fix until I find a better solution.

I've tested these changes using the page editor in the browser and can now confirm that they work :)

changelog: none

r?  `@llogiq`
@xFrednet xFrednet deleted the 6877-clippy-going-dark branch July 28, 2021 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dark mode for "ALL the Clippy Lints" page
4 participants