-
Notifications
You must be signed in to change notification settings - Fork 212
Vendor FontAwesome and Pure-CSS #981
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
Conversation
dd87856
to
6964fbf
Compare
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.
Where did you download the static files from? Can you give some commands that can replicate the changes to vendor
?
6964fbf
to
34af784
Compare
You also need to update the dockerfile.
|
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.
Got some time to review this today :)
// Variables | ||
// -------------------------- | ||
|
||
$fa-font-path: "../-/static" !default; |
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.
Instead of changing the path in the vendored file (which would override it when we update FA), could you set the variable in our own base.scss
?
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.
This was the recommendation in fontawesome's docs, but I can do whatever
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.
Why are they recommending that :/
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 have no idea to be perfectly honest
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.
Note that this will be fixed whenever we can use scss modules, at that time we can use something along these lines
@use "fontawesome" with (
$fa-font-path: "../-/static"
);
// For more info see https://sass-lang.com/documentation/at-rules/use#configuration
Modules are nice for other reasons as well, they allow namespacing and explicit access to external variables, mixins and rules
If the goal is getting docs.rs up and running in China as soon as possible, I'm happy to not block on my comments and merge, if a followup PR is made addressing them. |
I'm so sorry, I've been taking a breather the last few days but I'll get right on this |
Co-authored-by: Joshua Nelson <[email protected]>
… and made fetching content from vendored directories automatic
cbe38c1
to
30ae906
Compare
e07246e
to
59e856f
Compare
// MimeGuess misses a lot of the file types we need, so there's a small wrapper | ||
// around it |
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.
Can we upstream this patch? I don't want to have to special case things if I can at all help it.
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'm going to guess not since there's lots of open issues & prs for exactly this with no response. It shouldn't really be a huge deal since there's not very many exceptions
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.
Opened abonander/mime_guess#63
This was never addressed ... it would be great to be able to replicate the changes. Right now it just looks like an opaque 8k line blob. |
This broke fonts and has been reverted in production.
Looks like there was an extra |
It's because of |
Vendor all of our CSS, allows more users to access our site while simultaneously making less requests to load our page
Since we're using SASS for everything, this also allows for us to serve one single CSS file instead of the previous 4+
Closes #979 and #921.