-
Notifications
You must be signed in to change notification settings - Fork 34
Fork & Edit on Github
With this workflow you can create a copy (called a fork
) of the gitbook-docs
under your profile which you can use to propose changes in any of the files.
This fork
is connected to the official repo so all the changes you do in this fork can be used to create a Pull Request to the official repo.
From the official documentation repository click the Fork button.
After the fork process is completed you'll see the fork under your github profile.
Locate the file that you want to change in your fork
and open it in the online file editor by clicking the button with the pencil icon.
On the Edit file tab, make any changes you want to make to the file. (Remember that changes should be made using Markdown)
For changes in each file to be submitted, you have to commit your changes. Every commit should have a message describing your changes (Removed unnecesary asterisks
in our example).
In order to simplify things you can use the master
branch of your fork to commit your changes (but you could use another branch if you wish).
Click "Commit changes".
You can repeat this operation for any other file in the documentation. Remember to commit your changes to the same branch (
master
in our example).
Once you've finished editing files (with your suggestions) you can create a Pull Request for all the changes you've committed.
Once you've finished editing files in the master
branch (of your fork, i.e. your copy of the official documentation) you can submit all these changes for consideration by creating a Pull Request from this master
branch.
To do that, go to the main page of your fork repo and click New pull request
in the button besides the Branch: master
.
This will take you to the "Compare changes" page where you can see all the changes that will be included in your Pull Request (which will be made to the original official documentation repo).
Notice that here you're comparing the changes in the
master
branch of your fork (head repository: <your username>/gitbook-docs
in our example) against the current status of themaster
branch of the official repo (base repository: frontity/gitbook-docs
).
Click the button "Create pull request" that appears besides the text Discuss and review the changes in this comparison with others.
You'll then see this view:
Here you can set the title of the pull request (unnecesary characters removed
in our example) and add any comments regarding your changes.
Once you've done this... click on "Create pull request"
Boom! Your Pull Request has now been created. Now the ball is in our court.
Your changes will now have been added to the list of opened pull requests that will be reviewed by the Frontity team.
We will either accept your changes and merge them with the final version or, if we want to discuss the changes, we will start a conversation about them on the Pull Request.
Got questions or feedback about Frontity? We'd love to hear from you. Use our community forum yo ! ❤️
Frontity also welcomes contributions. There are many ways to support the project (and get free swag)! If you don't know where to start, this guide might help → How to contribute?