-
Notifications
You must be signed in to change notification settings - Fork 4
Embedding images into wiki page
Adding images to GitHub wikis is not as straight forward as other wikis, but the use of images is very helpful for instruction.
URL: Github provides a simple way to add an image if your image is a URL. Simply navigate to the 'edit' page and click on the image link in the GitHub toolbar and add the URL link.
Local Image: However, if your image is on your local machine, you must take a few additional steps.
-
Clone your repo's wiki repo (i.e., https://github.com/monarch-initiative/MAxO.wiki.git) which is found on every page of the wiki. -- Note: Github desktop has issues with cloning github wikis for some reason!!! Clone via terminal or another git client.
-
Move your file to the img/ directory in the newly cloned MAxO.wiki.
-
Commit and push back to the repo
-
Navigate to the 'edit' page of the page you wish to edit. In the edit box add
[[img/nameoffile.png]]
where you want the file to appear.