Skip to content
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

Markdown'd readme, changelog, contributing and license files. #1196

Merged
merged 1 commit into from Mar 22, 2017

Conversation

TankOs
Copy link
Member

@TankOs TankOs commented Feb 22, 2017

Markdown-style files for better formatting and overall reading experience — especially on GitHub.

@LaurentGomila
Copy link
Member

This was already discussed in the past, and as far as I remember, there were people (or maybe just me? 😁) against this modification.

@TankOs
Copy link
Member Author

TankOs commented Feb 22, 2017

@LaurentGomila Yup, perhaps — but let's give this another try with some more pressure... ;-) Direct comparison: http://imgur.com/a/crlI4

@LaurentGomila
Copy link
Member

Direct comparison: http://imgur.com/a/crlI4

... on github. What about the rest (ie. when you open it as a text file on your PC)?

@TankOs
Copy link
Member Author

TankOs commented Feb 22, 2017

http://imgur.com/a/YZIsi

@mantognini
Copy link
Member

http://imgur.com/a/YZIsi

Not that convincing if you ask me. Besides, we already have the website for a better reading experience.

@JonnyPtn
Copy link
Contributor

JonnyPtn commented Feb 22, 2017

In my humble opinion I'd prefer the markdown, but that may be because I rarely ever read readme text files (and when I do, it's usually just to find the github or website address), and also because I search github a lot when looking for tools/libraries and a nice readme can make all the difference

The files still seem perfectly readable to me in a text editor (even notepad!), but i appreciate making use of more markdown could eventually make it unreadable

@TankOs
Copy link
Member Author

TankOs commented Feb 22, 2017

The changelog and contributor files are not even distributed with binary releases - where most of the links are included.

I'm with @JonnyPtn, it just makes a huge difference whether the readme makes the repository look like a passive Git mirror, or it's nicely integrated into the site.

Yes, viewing the changelog in the text editor isn't convincing, but still readable. If that's the only thing holding us back, then dropping the links is an option (the changelog also includes links to the online version for a yet better reading experience if all those links are too much).

@criptych
Copy link

If it's a question of readability, GFM should automatically make numbered issues into links (within a repository), so they could probably be left as they were.

For what it's worth, I'm in favor.

@LaurentGomila
Copy link
Member

I know this sounds ridiculous, but what about Windows users who won't be able to double-click the .md files to open them in their default text editor?

Anyway: I won't block the PR this time, if we get enough agreement we can go ahead and merge it

@MarioLiebisch
Copy link
Member

Well, considering how many projects just provide a README or INSTALL file rather than readme.txt or similar I don't think file extension alone is such a big issue. If you're into coding just a little bit, you should know how to open a random file in a repository. Plus there are now some popular editors that actually open the file association (like VS Code).

For zipped releases we could also think about using a conversion tool to create additional rtf or html documents for those lazy double click gits. :)

@TankOs
Copy link
Member Author

TankOs commented Feb 23, 2017

@criptych That sounds great, thanks for the info.

@LaurentGomila How can they use a compiler if they fail to open a file with notepad.exe...? :P

@MarioLiebisch You forgot to also offer printed copies for those who are not into computers so much. ;-)

@TankOs TankOs force-pushed the feature/markdown branch 2 times, most recently from 28331b9 to 2592931 Compare February 23, 2017 09:06
@TankOs
Copy link
Member Author

TankOs commented Feb 23, 2017

Added logo and removed issue links, because issues are automagically linked by GitHub as mentioned by @criptych.

@TankOs
Copy link
Member Author

TankOs commented Feb 24, 2017

Hey @eXpl0it3r, want to review this? 🌹

@mantognini
Copy link
Member

IF people do think this is a good thing, it'd be better to git mv to keep a clean history/log for each individual file.

@eXpl0it3r
Copy link
Member

I don't like the difference between the changelog here and on the website, as it requires additional work for every release.

@MarioLiebisch
Copy link
Member

I don't like the difference between the changelog here and on the website, as it requires additional work for every release.

Sounds pretty trivial to me. We could just convert the change log using a script or render the markdown directly.

@eXpl0it3r eXpl0it3r added this to Discussion in SFML 2.5.0 Feb 28, 2017
@TankOs
Copy link
Member Author

TankOs commented Feb 28, 2017

I changed the markup because the output looked quite noisy to me. However I checked again at GitHub and it looks very similar to the website. I'll update it, so that we have less stuff to do.

@TankOs
Copy link
Member Author

TankOs commented Mar 2, 2017

Adjusted + rebased.

@TankOs
Copy link
Member Author

TankOs commented Mar 15, 2017

@SFML/sfml Can someone please approve this?

@LaurentGomila
Copy link
Member

Why did you change the file names to upper case?

@mantognini
Copy link
Member

Request: could you use git mv to rename files? This helps with the history.

@TankOs
Copy link
Member Author

TankOs commented Mar 15, 2017

@LaurentGomila No specific reason. Just tell me how it's wanted and I'll do it.
@mantognini I can do that.

@LaurentGomila
Copy link
Member

No specific reason. Just tell me how it's wanted and I'll do it.

If there's no reason to change it then it should stay the same.

@TankOs
Copy link
Member Author

TankOs commented Mar 15, 2017

@LaurentGomila @mantognini Ping

@LaurentGomila
Copy link
Member

I just noticed that CONTRIBUTING was upper case before your modification, it doesn't look consistent with the other files. Maybe this one should be changed to lower-case?

@mantognini
Copy link
Member

I just noticed that CONTRIBUTING was upper case before your modification, it doesn't look consistent with the other files. Maybe this one should be changed to lower-case?

When I created this file it was a requirement to be in uppercase. Don't know if this still applies.

@jcowgill
Copy link
Contributor

Request: could you use git mv to rename files? This helps with the history.

Git does not record file renames as part of commits, so this will have no effect. git mv is for most purposes equivalent to mv a b; git add -A a b.

@LaurentGomila
Copy link
Member

LaurentGomila commented Mar 15, 2017

When I created this file it was a requirement to be in uppercase

Why was it a requirement at that time? Is it a github thing?

@eXpl0it3r
Copy link
Member

Why was it a requirement at that time? Is it a github thing?

Yes, it will display a notice at the top when creating a new issue. Hasn't been very effective though.

@TankOs
Copy link
Member Author

TankOs commented Mar 15, 2017

I'd like to postpone renaming files to another PR. This one is about Markdown formatting. I updated the PR to have one clean commit again(!), instead of the (useless) renames as @jcowgill mentioned.

This is already 3 weeks old and has 29 comments about minor things.

@LaurentGomila
Copy link
Member

Yes, let's merge it 👍

@TankOs
Copy link
Member Author

TankOs commented Mar 16, 2017

Thanks; then feel free to approve the review, so that GitHub won't refuse the merge. ;-)

@eXpl0it3r eXpl0it3r moved this from Discussion to Ready in SFML 2.5.0 Mar 16, 2017
@mantognini
Copy link
Member

Git does not record file renames as part of commits

I'm not sure about that -- or about what you meant. I can rename file and git will understand that. Example. Looking at the changes in this PR, the moves/renames was not registered. Note that GitHub log history for a file does not follow renaming, but some git clients do (e.g. source tree). It's a feature that's very handy -- probably not that much here with those files however. If you feel like changing the PR to accommodate for that, great. Otherwise, I'll survive. Let's just do it for source files.

@jcowgill
Copy link
Contributor

@mantognini My point was the just doing git mv doesn't work because it is no different from renaming the files manually and running git add -A on them. Git does not store the rename information anywhere and only shows files as renamed because it detects that the new files and deleted files look similar. In this case the files were changed too much so Git's rename detection doesn't work.

@mantognini
Copy link
Member

@jcowgill Thanks for the detailed reply. This really is a pity... One has to create a commit exclusively to rename things in order to keep the log history clean I guess. :-/

@eXpl0it3r eXpl0it3r self-assigned this Mar 16, 2017
@JonnyPtn
Copy link
Contributor

Hasn't been very effective though.

Perhaps because the file currently contains just a link to the website, instead of the actual content? MD will help make it an actual hyperlink, but I don't see a reason it couldn't just contain the details of the "contribute" page from the website

@eXpl0it3r eXpl0it3r merged commit 858c9ce into master Mar 22, 2017
@eXpl0it3r eXpl0it3r deleted the feature/markdown branch March 22, 2017 02:13
@eXpl0it3r eXpl0it3r moved this from Ready to Merged in SFML 2.5.0 Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
SFML 2.5.0
  
Merged / Superseded
Development

Successfully merging this pull request may close these issues.

None yet

8 participants