Including images in wiki pages
Uploading images via git
Currently, Gitea supports only images in the base directory of the wiki git. (Gitea wiki pages are stored in a separate wiki right beside the project, wiki pages themselves are markdown files).
A feasible workflow might look like this (replace
<project> with your user and project name):
git clone email@example.com:<user>/<project>.wiki.git
## now copy image file into this folder
git add <codeberg.png>
git commit -m "add image"
Now, you can reference the image in Markdown, like this:
![image alt text](codeberg.png "image title")
After saving your changes, the image should be visible.
NOTE: In contrast to embedding external images, images in git are only rendered after saving the wiki or markdown file changes.
Hey there! 👋 Thank you for reading this article!
Is there something missing or do you have an idea on how to improve the documentation? Do you want to write your own article?
For an introduction on contributing to Codeberg Documentation, please have a look at the Contributor FAQ.