-
Notifications
You must be signed in to change notification settings - Fork 53
Embedding images in GitHub wiki
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/obophenotype/human-phenotype-ontology.wiki.git) which is found on every page of the wiki.
-
Move your file to the img/ directory in the newly cloned human-phenotype-ontology.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.