Contributing to the wiki
This outlines the means of editing the wiki.
If you are familiar with Git, then you can likely skip most of these docs, install mdBook locally and contribute as you would to any other project. The one caveat is that if you wish to use the CI generated previews then you must not work from a fork of the MakerSpaceNewcastle/wiki repository (you do not need to as being a member of the MakerSpaceNewcastle organisation gives you write permission to this repository).
Relevant parts of the mdBook documentation to reference are:
Prerequisites
- A GitHub account
- Be a member of the MakerSpaceNewcastle GitHub organisation
- Git installed and configured (if following Locally via Git clone)
- mdBook installed (if following Locally via Git clone)
Single page via the GitHub web UI
This will walk through making a change to a single page of the wiki.
In this example, let's assume you wish to add a couple more tools to the equipment page, only adding them to this list, not creating their description pages.
-
On the page, click the edit icon in the top right hand corner:
-
This will take you to the online text editor on GitHub (if you are not already signed in then you will be asked to). Make the desired changes (in this case the addition of the air compressor and bench grinder to the list) and click the green "Commit changes..." button.
-
You will be asked to provide a commit message, type something descriptive here and click the green "Propose changes" button.
The remaining options may be left as their defaults. If the options provided to you look different to the above then verify you have satisfied the prerequisites.
-
You will be taken to the create pull request screen, proceed to Proposing changes via a Pull Request.
Locally via Git clone
Note that these instructions are quite brief for the time being.
- Clone the wiki repository.
- Inside the repository, run
mdbook serve
. This will start a local web server that will update the site live as you make changes. - Make your changes via your text editor/IDE of choice.
- Commit the changes to a new branch.
- Push the branch.
- Open a pull request, proceed to Proposing changes via a Pull Request.
Proposing changes via a Pull Request
-
Provide a suitably descriptive title and description of your changes and click the green "Create pull request" button.
-
One the pull request has been opened, you will see the actions start to run. This will build the site and deploy a preview of it.
-
Once the actions have completed, you will see a comment appear with a link to preview the changes.
-
Opening the link in the comments and browsing to the equipment page shows the changes made.
-
Depending on exactly what has been changed in the pull request, certain people may have automatically been requested to review your changes, if so they must provide their reviews first. You may also opt to ask people to review your changes if desired.
Otherwise you can now click the green "Squash and merge" button, followed by "Confirm squash and merge" to accept the proposed changes.
-
The pull request is closed, the live wiki will now update.