gitlabhq/gitlabhq — pull request #6168 by harbulot (2014-01-26 20:24:53+00:00)
Title: Added ability to serve files in the wiki repository (images/attachments)

This patch allows for embedding images and using attached files in the wiki, when these files have been placed into the wiki repository.

To use, clone the wiki repository locally (Git Access tab in the wiki section), add and commit images or other files, and push the changes back to your Gitlab installation.

You can then embed images or link to these files for download:

```
![Fallback title when the image isn't found](image.png)

[Download file](attachement.pdf)
```

Note that this doesn't work if files are in subdirectories: they need to be in the repository's top directory.