# Issues adding images to my package docs (built from Documenter.jl)

**URL:** <https://discourse.julialang.org/t/issues-adding-images-to-my-package-docs-built-from-documenter-jl/46480>\
**Category:** General Usage\
**Tags:** documenter\
**Created:** [September 11, 2020, 10:13pm UTC](https://discourse.julialang.org/t/issues-adding-images-to-my-package-docs-built-from-documenter-jl/46480 "2020-09-11T22:13:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlandau](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vlandau/32/8986_2.png) [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Post date:** [September 11, 2020, 10:13pm UTC](https://discourse.julialang.org/t/issues-adding-images-to-my-package-docs-built-from-documenter-jl/46480/1 "2020-09-11T22:13:18Z")

</div>

After a lot of trial and error I finally found out how to _properly_ embed and render HTML code in .md files fed to Documenter.jl, but now I’m finding that the images aren’t showing up in a table I developed to place two images side-by-side.

I’m sure it’s a very very simple solution that I’m just not seeing for some reason. You’ll see in the docs [here](https://circuitscape.github.io/Omniscape.jl/dev/usage/#General-options) that the images are missing.

Here’s the html code I’m using:

```nohighlight
<table border="0"><tr>
<td> 
	<figure>
		<img src='figs/sources_block_of_1.png' alt='missing' /><br>
		<figcaption><em>Block size of 1</em></figcaption>
	</figure>
</td>
<td> 
	<figure>
		<img src='figs/sources_block_of_3.png' alt='missing' /><br>
		<figcaption><em>Block size of 3</em></figcaption>
	</figure>
</td>
</tr></table>

```

The images are housed in my package repo [here](https://github.com/Circuitscape/Omniscape.jl/tree/main/docs/src/figs).

Anyone know what I’m missing here?

---

<div class="post-metadata">

**Author:** ![vlandau](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vlandau/32/8986_2.png) [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Post date:** [September 11, 2020, 10:46pm UTC](https://discourse.julialang.org/t/issues-adding-images-to-my-package-docs-built-from-documenter-jl/46480/2 "2020-09-11T22:46:13Z")

</div>

I switched to use the direct paths of the images at [raw.githubusercontent.com](http://raw.githubusercontent.com), so it is working now! It would still be valuable to know how link to images based on their relative paths to the src/ folder, but for now this will do.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [September 11, 2020, 11:01pm UTC](https://discourse.julialang.org/t/issues-adding-images-to-my-package-docs-built-from-documenter-jl/46480/3 "2020-09-11T23:01:44Z")

</div>

Just use a relative path from the page you include it at? `../figs/sources_block_of_1.png` seems to work.

---

<div class="post-metadata">

**Author:** ![vlandau](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vlandau/32/8986_2.png) [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Post date:** [September 11, 2020, 11:09pm UTC](https://discourse.julialang.org/t/issues-adding-images-to-my-package-docs-built-from-documenter-jl/46480/4 "2020-09-11T23:09:14Z")

</div>

Ah, I was using the relative path based on my local file structure and not based on the paths created by Documenter. Thanks so much! I’ll try this out now then I’ll mark your response as the solution.

---

<div class="post-metadata">

**Author:** ![mortenpi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mortenpi/32/158_2.png) [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Post date:** [September 13, 2020, 11:17pm UTC](https://discourse.julialang.org/t/issues-adding-images-to-my-package-docs-built-from-documenter-jl/46480/5 "2020-09-13T23:17:44Z")

</div>

For future reference, there is an open issue about this with some additional discussion: [#921](https://github.com/JuliaDocs/Documenter.jl/issues/921).

---

<div class="post-metadata">

**Author:** ![hytonwons](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hytonwons/32/8787_2.png) [@hytonwons](https://discourse.julialang.org/u/hytonwons)\
**Post date:** [October 8, 2021, 6:20am UTC](https://discourse.julialang.org/t/issues-adding-images-to-my-package-docs-built-from-documenter-jl/46480/6 "2021-10-08T06:20:09Z")

</div>

It might be updated as of Oct 2021:  
`figs/` should do fine instead of `../figs/`.
