Re: setting imagesdir for asciidoc articles baked with awestruct
Posted by xcoulon on Dec 03, 2013; 4:23pm
URL: https://discuss.asciidoctor.org/setting-imagesdir-for-asciidoc-articles-baked-with-awestruct-tp528p1173.html
Hello,
Just to keep you posted, I found the solution to my problem, thanks to the hints I got in previous replies.
It turns out that I just needed to set the following config (in _site/config.yml):
asciidoctor:
:safe: safe
:attributes:
imagesdir: .
icons: font
and then use the following syntax in my .adoc files:
image::images/whatever.png
assuming that the images are in a subfolder of the current document.
Even cooler, it works both when building our site with awestruct and when looking at the document rendered in HTML on github \o/
Again, thanks for your help!
Best regards,
Xavier