-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(fonts): warn if local font is in public dir #13678
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
🦋 Changeset detectedLatest commit: c06f9bd The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
CodSpeed Performance ReportMerging #13678 will not alter performanceComparing Summary
|
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.
Docs review (but you probably want the opinion of a native speaker 😄 ): the warning looks fine to me! I only left a nit regarding the changeset. So, LGTM.
Co-authored-by: Armand Philippot <[email protected]>
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.
So, I left a comment about the warning itself, but I have a question about having this warning in the first place.
So, with this warning, someone with a font file in public/ will see this EVERY time? Why would someone choose to keep it in public, and if there is a good reason and they're intentionally doing this, they probably don't want to see a warning every time? Just making sure that this won't affect someone this way.
I can see in the docs PR we're suggesting not to do this, so presumably it's OK if the warning suggestions people should move their file. But just want to make sure there's not a good reason for not doing so, and whether people are signing up for this error when maybe just having docs is enough?
I can't think of a use case where keeping fonts in public would be better, after having spent many hours optimizing fonts in my own projects This warning does seem like a good thing to have for the very specific users that Florian mentions who have perhaps forgotten to move/delete the fonts from public after upgrading to the new API |
Only when using the experimental fonts API
I don't think there's any good reason to do so when using this feature |
|
As for now, the warning is fine because it's an experimental feature, however I don't think we should keep it once it's out of experimental. We don't warn users if they have their images in It's up to the users to decide what to do, as long as docs warn them. |
|
Good point, i'll add a todo comment |
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 agree with Ema that when stable, this doesn't feel like a necessary warning but instead something to document. But the message as written is fine by me!
Co-authored-by: Armand Philippot <[email protected]>
Changes
public, but this is not recommended as we copy fonts so files are effectively duplicated in the build outputTesting
Manual
Docs
withastro/docs#11511 + changeset