Swap in svgs for the pngs on the homepage#17163
Swap in svgs for the pngs on the homepage#17163cjyabraham wants to merge 1 commit intokubernetes:masterfrom cjyabraham:master
Conversation
|
Deploy preview for kubernetes-io-master-staging ready! Built with commit d264540 https://deploy-preview-17163--kubernetes-io-master-staging.netlify.com |
|
I'm not sure of the context for why this change is occurring and it spans multipe languages. I'm gonna ask @zacharysarah to review. |
|
The short argument is that SVGs are smaller than PNGs, work with every recent browser, and don't look blurry on modern screens. More info at https://www.cncf.io/blog/2019/07/17/what-image-formats-should-you-be-using-in-2019/. |
|
@cjyabraham you should normally limit pull requests to a single language and let localization teams pull changes when they're happy to. |
|
@cjyabraham did you intend to swap out the CNCF logo as well? It's still a PNG when I look. |
|
Isn’t this an exception where we’re swapping out images without text (so they’re identical between languages)? Yes, we should swap in the CNCF SVG while we’re at it. |
Prow isn't clever enough to know about the exception. What that means is that Prow will want approval from each touched language. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@sftim, I tried backing out the file changes within the ja and zh directories but, oddly, if I replace the pngs in those directories, then all languages use those pngs, including English. Perhaps it's not setup to be able to use a png in one language and an svg in another? Any idea how that works? |
|
I’ll review this PR after today’s weekly SIG Docs meeting. |
Rather than diagnosing changes in a PR with a complicated change/revert history, it may be helpful to close this PR and open a new one with changes only to English content. Would you be willing to try that first, before folks put in the effort to diagnose edge case behavior? Please let me know! |
|
@zacharysarah I've backed out changes to non-English content and you can see that the English site is now showing pngs again despite having svgs in the content/en/_common-resources/images/ dir. I'm not sure I understand why you'd want me to start over with a new PR. Wouldn't we just end up with the same net difference to files? |
|
@cjyabraham I'm curious why replacements are only required in Chinese and Japanese paths. Why not all localizations, instead of only those two? Well, it's academic curiosity. If you add the images back in, I'll approve the PR. |
In addition to English, only those languages have their own copy of the images in their content folders. The other languages just inherit them from somewhere else I guess.
What do you mean "add the images back in"? You mean put the svgs back in the ja and zh folders? |
Yes please. |
|
Ok, done. |
|
Thanks—can you please squash your commits so we can merge? |
author Yuk, Yongsu <ysyukr@gmail.com> 1572490417 +0900 committer cjyabraham <cjyabraham@gmail.com> 1572500010 +0700 Edit link in document for issue #16908 (#16909) * Edit link in document. * Update nodes.md added svgs for all case studies added svgs for all case studies duplicating the jd logo so both are svg switch to svgs in the case studies block on the homepage swapped in svgs for all the images on the homepage set the width explicitly for the first image on the homepage swapped in an svg for the CNCF logo on homepage backing out changes to non-English images remove ja svgs putting the svgs back in ja and zh languages
|
Ok. Squashed. Weirdly it has picked up this change during the rebase operation. I have no idea why that appeared but it currently sits as the most recent commit on master. |
|
Since I can't figure out how to squash without picking up that foreign commit, I've recreated this PR with just one commit. I'll close out this one in favor of that one. Hopefully we can get it merged now. |
No description provided.