How to add local images to documentation?

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

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)

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.

Is there anyway to use a relative url? I tried “…/url” but it asks for login info.