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

Properly link licenses on crate pages #2739

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

Manishearth
Copy link
Member

Fixes #2738

I'm not happy with the styling but I simply don't understand the CSS here well enough to do better without putting in significant effort.

I decided to consistently link to SPDX instead of also trying to link to https://choosealicense.com/ likes crates.io, but it's an easy change to make if we want to add that too.

@Manishearth Manishearth requested a review from a team as a code owner February 19, 2025 22:11
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Feb 19, 2025
@Manishearth
Copy link
Member Author

Here's what it currently looks like

image

A little cramped. It tries to preserve whitespace choices in the original SPDX. We could use a proper SPDX parser and normalize, but I think showing the original license string is actually good here.

@GuillaumeGomez
Copy link
Member

Great work, thanks a lot! Don't worry about CSS, I'll send a follow-up.

@GuillaumeGomez
Copy link
Member

Clippy errors and test_parse_license is failing too.

@GuillaumeGomez
Copy link
Member

Fmt is failing now. 😉

@Manishearth
Copy link
Member Author

Yes, I can read the CI, you don't need to tell me about the failures 😄

Fixes rust-lang#2738

I'm not happy with the styling but I simply don't understand the CSS here well enough to do better without putting in significant effort.

I decided to consistently link to SPDX instead of also trying to link to https://choosealicense.com/ likes crates.io, but it's an easy change to make if we want to add that too.
@Manishearth
Copy link
Member Author

Done, probably.

@GuillaumeGomez
Copy link
Member

All good, thanks! Sending a follow-up for the CSS.

@GuillaumeGomez GuillaumeGomez merged commit 02922b1 into rust-lang:master Feb 20, 2025
9 checks passed
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Feb 20, 2025
@Manishearth Manishearth deleted the license-page branch February 20, 2025 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

License link doesn't point anywhere useful
2 participants