This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
106 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
# Editing Workflow | ||
|
||
TODO | ||
Please note, this document is just an overview of the processes available, it is **not** documentation of how to author the wiki. | ||
Actual documentation will be written in due course should this solution be selected. | ||
|
||
In general, there are two options: editing entirely via the GitHub website, or editing locally with Git setup. | ||
If you are comfortable with Git then you likely want to use the latter option, if you are new to Git or only need to make a small change then the former option is best. | ||
|
||
## Making changes | ||
|
||
### Editing an existing page | ||
|
||
If you just want to edit a single page then you may follow the edit link in the top right hand corner of the page. | ||
Assuming you are signed in to GitHub, this will take you directly to a page where you can edit the contents and submit a Pull Request. | ||
|
||
### Editing the wiki using GitHub via the web browser | ||
|
||
Files may be uploaded via the GitHub website (text or images) and edited via GitHub's text editor. | ||
After uploading or editing files GitHub will prompt you to commit them and optionally create a Pull Request. | ||
|
||
### Editing the wiki locally | ||
|
||
I am lazily going to assume I don't need to say much here. | ||
If you are familiar with Git then follow the usual create branch, do changes, commit, push, open Pull Request workflow. | ||
|
||
It is possible to run mdBook locally, or just use any Markdown renderer you may already have to preview changes. | ||
|
||
## After the Pull Request has been created | ||
|
||
One may wish to ask for people to review it, e.g. if you have editing a page relating to the CNC mill then you may wish to ask David Pye to look over it. | ||
|
||
Whenever a new commit is added to a Pull Request, a GitHub Action runs which builds the page and deploys it in a test environment, allowing to to see exactly what your changes will actually look like. | ||
A bot will comment on the Pull Request with a link you can follow to read the wiki with your changes applied (always use the most recent comment). | ||
|
||
If the bot did not post a comment, then check the status of the Action, it may show a red cross indicating that something has gone wrong. | ||
You will have to inspect the logs to see exactly what the issue is, if it is an error from mdBook then they are usually pretty descriptive as to what is wrong. | ||
|
||
When happy the PR is merged, an Action runs and the live wiki is updated. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Implementation Plan | ||
|
||
A general idea of how this will be put into practice. | ||
|
||
1. Create a Cloudflare Pages project named "makerspace-wiki" (or something close to that) under the Maker Space account | ||
1. Create a repository named "wiki" under the MakerSpaceNewcastle GitHub organisation containing all but the content of the repository behind this wiki | ||
1. Create an API key allowing publishing to the above project and store it as a repository Actions secret in the above repository | ||
1. See that GitHub Actions publishes to the Cloudflare Pages project | ||
1. Apply repository settings described in [technical details](./technical_details.md) | ||
1. Apply DNS settings described in [technical details](./technical_details.md) | ||
1. Move the repository behind this demo wiki under the MakerSpaceNewcastle organisation and archive it | ||
1. Begin migrating content to/creating content on the new wiki | ||
1. Once the new wiki contains all of the useful information from the old wiki, replace any wiki links with `wiki.makerspace.org.uk` | ||
1. When we are certain that any useful content has been migrated from the old wiki, delete it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters