Skip to content

Embedding images into wiki page

Leigh Carmody edited this page Sep 3, 2021 · 2 revisions

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.

  1. 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.

  2. Move your file to the img/ directory in the newly cloned MAxO.wiki.

  3. Commit and push back to the repo

  4. 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.

Clone this wiki locally