-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
First attempt to markdownify the readme #6718
Conversation
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.
Wauw, this looks good :D Minor bits and pieces from my side, nothing drastic. I have no real comments :)
readme.md
Outdated
## Meta | ||
|
||
- Last updated: 2016-07-01 | ||
- Release version: 1.6.1 |
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.
Possibly bump this :D
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.
Aside the fact, that the informations are outdated (two years old), I tend to agree in general because it's a source of unnecessary maintenance effort.
readme.md
Outdated
@@ -0,0 +1,766 @@ | |||
# Readme |
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.
Indeed, maybe just change this to "OpenTTD". But I agree with you, Readme alone is weird now :)
Should probably remove the old readme.txt as well :) |
Ok, I changed the documents title and removed the section with the documents date and the version number. Aside the cosmetic tasks only one problem remains (I think it is one). The inconsistent styling of the lists with (virtual) columns. Keeping the layout with the misuse of code markup (like in „3.0 Supported platforms“) is IMHO unsatisfying. Either the layout should be kept, then I tend to use tables or these lists should be lists (what they are from a semantic point of view (HTML-coding trained)), what would lead to a non-fixed layout.
I will remove it at the end. I only want to wait for the ok. It's a kind of clearing when the job is done. ;-) |
Please do what you think makes the best README.md (and I agree, capitals indeed). As I really like what I see so far, and I am not really experienced with choices in markup :) Another request, please rebase to latest master. It is the reason the checks are failing. We fixed this in the latest master, but .. you first need to rebase to there :D Tnx! |
Since it uses markdown now, can you make the Table of Contents actually link to the correct sections? Not sure if overkill... |
It's possible and I did that somewhen. Was something with additional HTML-elements. Have to research, how I did it. :-) edit: It's easier than I thought. Github generates ID as anchors from the headers. Simple copy'n'paste job. |
… Markdown renderers
I have a problem after rebasing. The first three commits of the branch, already part of this pull request, seems to be doubled in the history of my repository (once before rebasing, a second time after it). Because of that Github does not accept a push to the online-branch. The only solution I know is to force the push ( |
Yup, you need to force push to a remote when you rebase - the "history" of
the branch has been rewritten and the commits have changed their hashes.
…On Sun, 15 Apr 2018, 00:28 Heiko August, ***@***.***> wrote:
I have a problem after rebasing. The first three commits of the branch,
already part of this pull request, seems to be doubled in the history of my
repository (once before rebasing, once after it). Because of that Github
does not accept a push to the online-branch. The only solution I know is to
force the push (git push origin mdreadme -f). Would this break something
in this pull request? How to handle it in a proper manner?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6718 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AD0oOFR41aTC5MmZvDlv3dDIaKl8ypbiks5tooYCgaJpZM4TVKzn>
.
|
Indeed, after a rebase you will always have to force push, as you changed history. What we commonly do, assuming you have a remote called 'upstream' pointing to https://github.com/OpenTTD/OpenTTD:
You mention that you see commits double; this most often happens that if you do a 'pull' before a push. Git now merged your work twice; which is a bit silly :D Recovering from that is relative easy:
This will give you an editor which shows all your commits in your current branch; this is including the double commits. Now you just have to pick either one you want to keep. Save the file, close your editor, and you should now be able to do a Sorry for the trouble; normally not really needed, but we are still building up OpenTTD on GitHub :) |
Well, I rebased my fork again with the command @TrueBrain posted ( |
Yeah, the checks fail because your commit messages don't comply to the commit style :) But we can fix that if we like the current result :) |
Okay, everyone seems to like it! Now we just have to toy a bit with your git branch; because we would like it if we first have a commit where readme.txt is renamed to README.md, and then (in a single commit) your other changes happen. Possibly the easiest way to do this, is to start clean. Below a suggestion how to do that, but feel free to pick what-ever works for you :)
When committing, please mind the commit style: https://wiki.openttd.org/Commit_style#Commit_message Thank you for this work! :) |
I also thought about restarting the attempt. :-) Main work is done, so it's only a task of following the ruleset.
I've a few questions at this point. Not that I have to restart it again and again. Working under this strictness is new for me.
I tend to something like Is it recommended to open a new, clean pull request? |
In this Pull Request is fine by me. A new is also fine, if that is easier :) Commit messages .. always annoying .. :D I think best fit for this is simply |
I opened a new, clean pull request. Thank you (especially @TrueBrain) for your help and patience. |
As @TrueBrain stated in issue #6698 the readme should be adapted to Markdown. I did this with generating a header hierarchy and a bit of reformatting (lists, paragraphs, etc.). IMHO this is not the whole work.
inlinecode
?readme.txt
more readable. When switching to Markdown, this limitation is gone. Is it useful to keep this old format?Please let me know, what to improve. I will implement, what is needed. To remove the
readme.txt
would be the last step.