-
Notifications
You must be signed in to change notification settings - Fork 212
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
Remove rustdoc CSS files import from non-rustdoc pages #1146
Conversation
304afd9
to
1bbacae
Compare
Updated! I also removed |
font-family: 'Fira Sans'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff'); |
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.
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.
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.
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.
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.
@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.
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! Sending a PR shortly then.
Normally, if everything was done properly, no UI changes should appear.