On mer., 2010-08-04 at 11:27 -0700, Suraj Kurapati wrote:
> > Sure, just do iconsdir=/path/to/icons/dir (using the correct path)
> in
> > asciidoc.conf (or any relevant config file).
> 
> That is a problem.  On my system, I know what the correct path is.
> But when someone uses my script (which internally calls asciidoc) on a
> different machine, I don't know what the correct path is.  My script
> needs to auto-detect it somehow. 

I don't know what “your script” is. But you might as well let the user
configure herself the correct icons path for his installation.

On my Debian, icons are installed twice (actually fourth with the docs):

dpkg -L asciidoc |grep important.png
/usr/share/doc/asciidoc/doc/images/icons/important.png
/usr/share/doc/asciidoc/examples/website/images/icons/important.png
/usr/share/asciidoc/icons/important.png
/usr/share/asciidoc/images/icons/important.png

I'm not exactly sure why I have them in both icons/ and images/icons,
but anyway, the default iconsdir in asciidoc.conf is ./images/icons,
meaning the script expect them in the doc folder. So your best bet is to
ship the icons with your doc (which might not be really economic). The
other option is as above, to have user correct the iconsdir path to
their installation:

grep iconsdir .asciidoc/asciidoc.conf
iconsdir=/usr/share/asciidoc/icons

Hope that helps,
-- 
Yves-Alexis

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to