This wiki is also available on GitHub.
To maintain synchronisation between HackMD and GitHub, it is necessary to pull and push changes between them (see Editing an Existing Page).
There are many good guides to writing in markdown, but here is a nice succinct one github/cuonggt/markdown_guide.md
Here is a more complete overview from the original creator of markdown: https://daringfireball.net/projects/markdown/
There is a comprehensive guide to markdown and HackMD here: https://hackmd.io/c/tutorials/
Create a new markdown file for the page in the appropriate folder, and add some content. To facilitate navigation, add a link to the wiki home at the top of the page, after the page title:
**[Wiki Home](https://hackmd.io/@fablabedp/home)**
Make a commit for the new page to the repository on GitHub.
On the HackMD dashboard, select New Note
In the empty Note page, select Pull from Github
, then select the fablabedp-wiki
repo, main
branch, and then navigate to the page and select Pull
In the pull dialog, select Apply all changes
Edit the page title and add any necessary tags. The first tag selected will be used as a category organiser on the HackMD dashboard.
When the page is ready to publish, Select Share
and set note permisssions to read: Everyone
and write: Only me
. If necessary you can customise the page URL, then agree to the HackMD community guidelines and select Publish
.
Edit the wiki home page to add a link to the new page. In order to make the links functional on GitHub, use HackMD absolute urls (eg: https://hackmd.io/50M-O-CoRtC3L6Bp-058dw)
After pushing a commit to GitHub, any pages edited need to be manually updated on HackMD. In the page options select Versions and GitHub Sync
.
If there are any new changes to synchronise there will be an orange dot on the Pull icon.
Select Apply All Changes
, and then you can close the Versions and GitHub Sync window.
After editing a page on HackMD, these can be pushed as a commit to GitHub. In the page options select Versions and GitHub Sync
, the select Push
, and with the main branch select click Push
. If needed you can customise the commit name and description, but this is optional.
Images can be added to the github repository for embedding in pages. In this case use the following link format as the image source:
