Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLab: How to embed image from repo in the wiki?

I have a GitLab repository with documentation in the attached wiki (i.e. NOT in the repo itself) and an image file inside the repository itself that I want to embed in wiki pages.

How can this be done?

From a wiki page, I can successfully link to the image using [[../tree/master/pathto/myimage.jpg]] or [[../raw/master/pathto/myimage.jpg]] but

![](../raw/master/pathto/myimage.jpg)

doesn't seem to work.

(GitLab Community Edition 10.0.3)

like image 253
hdkrgr Avatar asked Dec 15 '17 10:12

hdkrgr


Video Answer


1 Answers

Embedding using the absolute path to the repo and image worked:

![](https://url.of.my.repo/raw/master/pathto/myimage.jpg)

like image 53
hdkrgr Avatar answered Sep 22 '22 18:09

hdkrgr