An open source attempt at documenting DragonRuby - GTK
The fastest and easiest way to contribute to changes to the project would be to simply Fork > Branch > Change > Push
Fork the project & clone locally
This will create a copy of the repository in your own GitHub account
-
Move to the location you want to save the project to:
cd location/you/want/to/save/to
-
Clone the project:
git clone https://github.com/ZMonk91/DragonRuby-Docs.git
-
Change into the new project’s directory:
cd DragonRuby-Docs/docs
note: All editable files are located under the docs/
folder.
The number one rule is to put each piece of work on its own branch.
Get branch from master:
git checkout master
The the git pull command will sync our local copy with the upstream project and the git push syncs it to our forked GitHub project:
git pull upstream master && git push origin master
Start your own branch, naming whatever the fix is:
git checkout -b hotfix/new_name_here
Ensure that you only fix the thing you’re working on. Do not be tempted to fix some other things that you see along the way, including formatting issues, as your PR will probably be rejected.
Simply make whatever changes you would like to submit, so long as they within the docs/
folder. (Make sure you leave a proper git commit message)
To create a PR you need to push your branch to the origin remote and then press some buttons on GitHub.
To push your new branch:
git push -u origin hotfix/new_name_here
This will create the branch on your GitHub project. The -u flag links this branch with the remote one, so that in the future, you can simply type git push origin.
Swap back to the browser and navigate to your fork of the project (https://github.com/YOU_USERNAME/DragonRuby-Docs) and you’ll see that your new branch is listed at the top with a handy “Compare & pull request” button:
On this page:
- Ensure that the
base fork
points to the correct repository and branch. - Ensure that you provide a good, succinct title for your pull request and explain why you have created it in the description box. Add any relevant issue numbers if you have them.
- Once you are happy, press the
Create pull request
button and you’re done.
Congratulations You've successfully submitted a change. The request will be reviewed and if everything was done correctly, will be updated immediately. No further changes necessary!