awesome-readme icon indicating copy to clipboard operation
awesome-readme copied to clipboard

Add screenshots of awesome readmes

Open matiassingers opened this issue 10 years ago • 11 comments

Not sure about this, but could be interesting to do.


What do you guys think?

matiassingers avatar Jan 19 '15 06:01 matiassingers

:+1: I was going to suggest that.

sindresorhus avatar Jan 19 '15 12:01 sindresorhus

:+1:

cheeaun avatar Jan 22 '15 02:01 cheeaun

@sindresorhus @cheeaun how would you show the screenshots?

Was thinking about a table, and then maybe a cropped screenshot - but looks a little clunky.

matiassingers avatar Jan 22 '15 02:01 matiassingers

Nah, tables are ugly. Just resize it to a retina thumbnail.

sindresorhus avatar Jan 22 '15 06:01 sindresorhus

This would confer the benefit of freezing the README in a point of time. At the moment, it is easy for the README to change such that it might not be awesome anymore.

RichardLitt avatar Nov 13 '16 09:11 RichardLitt

You could use the <details> tag to hide the screenshots.

Example

  • Example without a screenshot - foo
  • Example with a screenshot - bar
  • Example without a screenshot - qux

Code

* Example without a screenshot - foo
* <details>
    <summary>Example with a screenshot - bar</summary>
    <img src="https://imgs.xkcd.com/comics/random_number.png">
  </details>
* Example without a screenshot - qux

deltaidea avatar May 23 '17 21:05 deltaidea

@deltaidea that sounds like a great idea. Any chance you'd like to submit a PR?

RichardLitt avatar May 25 '17 13:05 RichardLitt

Sure, maybe later today. Not with all screenshots at once, though, as that's a lot of work. 😄

deltaidea avatar May 25 '17 14:05 deltaidea

Wait, I just realized that if we want to preserve a particular version of a readme, we could just link to it with current commit in the URL, like this: https://github.com/sindresorhus/pageres/blob/7576249b66accd3fb832dc7b65925aa95978ed2a/readme.md This would be considerably easier to do, and the markdown in our list would remain simple and contributor-friendly.

There're two issues with this approach that are solved by screenshots:

  • Badges and other external images may become unreachable and break the visual style.
  • Repos can be deleted, in which case the links will still be dead.

deltaidea avatar May 25 '17 14:05 deltaidea

@deltaidea Hmm. How about we link to the commit, and show the image as a screenshot? I think that would solve both of the issues, and allow us to content address it.

Thank you for helping with this!

RichardLitt avatar May 26 '17 12:05 RichardLitt

Just to revive this, I've noticed somewhere else that they have users submit an image preview with certain dimensions in addition to a link to their repository. Perhaps we can do something like that?

rayhanadev avatar May 09 '21 11:05 rayhanadev