You can modify or edit the content of a page directly on Github. For this you will first need to login (or signup if you do not have an Git account)to Github.
Edit your Content and make a Pull Request:
-
After you have logged into Github go to the page you want to edit on the website. On the page click on the GitHub icon which states Edit me.The “Edit me” icon will take you to the GitHub repository, where you again click on the pencil icon, shown on the right, and start editing.
-
You can now edit or add new text and images required for the content you want to add. Formatting is done according the MkDocs format Cheathseet.
-
When you are happy with the edited content, go to the “Propose changes” section at the end of the page and write a title and a brief explanation of your changes.This can be as short as ‘fixing a typo’, ‘mkdocs formatting issue’ or be more elaborate explaining what section was added and why.
-
Click on “Propose changes”.
-
You are now redirected to the Pull Request (PR) page. A “pull request” is a request to “pull” your changes into the website. Click on the “Create Pull Request” green button. Here you can choose to:
- “Create draft pull request”: choose this if you have not finished writing. Later on you can always click on “Ready for review” to switch to a normal pull request. You can find more information about draft pull requests in the GitHub documentation.
- “Create pull request”: choose this if you have finished your text. Editors will then review your request.
-
In case you created a “draft pull request”, you can return to your pull request by going to the pull request section of our GitHub repo.
-
If you open a normal pull request then a review is automatically requested. The relevant editors will check your changes.
Address Editors’ Comments
- When editors add comments or add a review of your pull request, you will be notified.
- You need to address editors’ comments and requests by editing your pull request as in step 5 (see above).
- Go to your pull request
- Click on “Files changed” in the top menu bar.
- Click on the icon with 3 dots “…” of the file you want to edit and then click on “Edit file”.
- Make your changes.
- Click on “Commit changes”.
- When all the requests have been addressed, the editors will mark the conversation as “Resolved” and the proposed changes as “Approved”.
- You content is ready to be merged and published in the main website.
- Editors will publish your content.