Skip to content

Remove rustdoc CSS files import from non-rustdoc pages #1146

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

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Oct 30, 2020

Normally, if everything was done properly, no UI changes should appear.

@jyn514 jyn514 added the A-frontend Area: Web frontend label Oct 30, 2020
@GuillaumeGomez GuillaumeGomez force-pushed the remove-rustdoc-css-files branch from 304afd9 to 1bbacae Compare October 30, 2020 18:43
@GuillaumeGomez
Copy link
Member Author

Updated! I also removed normalize.css and couldn't spot any difference...

@jyn514 jyn514 added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Nov 4, 2020
@jyn514 jyn514 merged commit a16e50b into rust-lang:master Nov 4, 2020
@jyn514 jyn514 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 Nov 4, 2020
font-family: 'Fira Sans';
font-style: normal;
font-weight: 400;
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those files are from the rustdoc essential files, which means starting an instance locally without building something before will result in broken styling.

I'm wondering if it's worth putting them in /-/static/fonts or something.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's the most stable part of rustdoc. They were here before I came in and they haven't changed since then. So moving them in a "static" location seems safe enough.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GuillaumeGomez I think pietro means that the files won't appear at all unless you run a build first. It would be nice to be able to use Fira Sans without having to first run a rustdoc build.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see! Sending a PR shortly then.

@GuillaumeGomez GuillaumeGomez deleted the remove-rustdoc-css-files branch November 4, 2020 10:26
@jyn514 jyn514 removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Web frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants