Skip to content

Swap in svgs for the pngs on the homepage#17163

Closed
cjyabraham wants to merge 1 commit intokubernetes:masterfrom
cjyabraham:master
Closed

Swap in svgs for the pngs on the homepage#17163
cjyabraham wants to merge 1 commit intokubernetes:masterfrom
cjyabraham:master

Conversation

@cjyabraham
Copy link
Copy Markdown
Contributor

No description provided.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language language/ja Issues or PRs related to Japanese language language/zh Issues or PRs related to Chinese language sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 24, 2019
@netlify
Copy link
Copy Markdown

netlify bot commented Oct 24, 2019

Deploy preview for kubernetes-io-master-staging ready!

Built with commit d264540

https://deploy-preview-17163--kubernetes-io-master-staging.netlify.com

@bradtopol
Copy link
Copy Markdown
Contributor

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.
/assign @zacharysarah

@dankohn
Copy link
Copy Markdown
Contributor

dankohn commented Oct 24, 2019

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/.

@sftim
Copy link
Copy Markdown
Contributor

sftim commented Oct 27, 2019

@cjyabraham you should normally limit pull requests to a single language and let localization teams pull changes when they're happy to.

@sftim
Copy link
Copy Markdown
Contributor

sftim commented Oct 27, 2019

@cjyabraham did you intend to swap out the CNCF logo as well? It's still a PNG when I look.

@dankohn
Copy link
Copy Markdown
Contributor

dankohn commented Oct 27, 2019

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.

@sftim
Copy link
Copy Markdown
Contributor

sftim commented Oct 27, 2019

Isn’t this an exception where we’re swapping out images without text (so they’re identical between languages)?

Prow isn't clever enough to know about the exception. What that means is that Prow will want approval from each touched language.

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign zacharysarah
You can assign the PR to them by writing /assign @zacharysarah in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cjyabraham
Copy link
Copy Markdown
Contributor Author

@sftim @dankohn I've updated the CNCF logo.

@cjyabraham
Copy link
Copy Markdown
Contributor Author

@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?

@zacharysarah
Copy link
Copy Markdown
Contributor

zacharysarah commented Oct 29, 2019

I’ll review this PR after today’s weekly SIG Docs meeting.

@zacharysarah
Copy link
Copy Markdown
Contributor

@cjyabraham 👋

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.

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!

@cjyabraham
Copy link
Copy Markdown
Contributor Author

@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?

@zacharysarah
Copy link
Copy Markdown
Contributor

@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.

@cjyabraham
Copy link
Copy Markdown
Contributor Author

@cjyabraham I'm curious why replacements are only required in Chinese and Japanese paths. Why not all localizations, instead of only those two?

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.

Well, it's academic curiosity. If you add the images back in, I'll approve the PR.

What do you mean "add the images back in"? You mean put the svgs back in the ja and zh folders?

@zacharysarah
Copy link
Copy Markdown
Contributor

You mean put the svgs back in the ja and zh folders?

Yes please.

@cjyabraham
Copy link
Copy Markdown
Contributor Author

Ok, done.

@zacharysarah
Copy link
Copy Markdown
Contributor

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
@cjyabraham
Copy link
Copy Markdown
Contributor Author

cjyabraham commented Oct 31, 2019

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.

@cjyabraham
Copy link
Copy Markdown
Contributor Author

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.

@cjyabraham cjyabraham closed this Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language language/ja Issues or PRs related to Japanese language language/zh Issues or PRs related to Chinese language sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants