How to add local images to documentation?

#1

Hi

I want to add some images to my markdown docs in the wiki tab. So I have

assets/image.png to a document at the root (wiki documents).

I tried these but none works.

![emtpy](file://assets/image.png)

![emtpy](assets/image.png)

![emtpy](./assets/image.png)

thanks

0 Likes

#2

Hello,

you have to upload the picture to a repository, the commit and open the image. At this place you can see “Raw” button, which links to direct link of the picture. This link is possible to use in wiki.

Example:
![picture](http://example.com/organisation/MyProject/raw/branch/master/doc/Picture.png)

0 Likes

#3

I do not recommend uploading static assets for the Wiki into your repo. Instead consider using a service like Keybase for a GPG encrypted public folder and whitelist your Keybase domain via CSP in your Gitea installation—and link to your image from there so you’re not taking up space in your git repo.

0 Likes