-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
docs(readme): fixed readme images to link to local assets #6116
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2c95336
Fixed footer logo, made example audit have max width 500px.
exterkamp e7997b3
Replaced dev tools integration image.
exterkamp c06ef6c
Changed to absolute paths for NPM.
exterkamp 00d324c
Adjusted links to match possible best practice, e.g. pointing to HEAD…
exterkamp 6cd274b
Added absolute URLs to readme images. Added explanation to CONTRIBUT…
exterkamp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a reason we're moving to
raw/master
instead of hash-based?raw/master can just be super confusing once master gets ahead of older versions. We don't update the images that often, think we could stick with hashes?
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.
hm true
https://www.npmjs.com/package/@code-therapy/packages-with-readme-relative-images#conclusion lays out how annoying this is right now
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.
Hmm I definitely find the hashed links confusing because I never know where they are coming from. And I think it would be much easier to keep them updated if they were in the repo/easy to find and update.
There is the raw.github link for these images e.g.
https://raw.githubusercontent.com/GoogleChrome/lighthouse/master/assets/lighthouse-logo.png
but I guess that comes right back to the raw/master issue, this is just the resolution after replacingblob
withraw
.Not sure exactly how to handle this then.
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.
Seems like in the example @paulirish sent over he uses the form
raw.githubusercontent.com/.../HEAD/.../...png
so it removes the master hardcoding. Seems like what he was doing might be good for us to maintain absolute paths, but still have some flexibility.