It made a new entry with the title "Blah" and an inlined image. (Try
that exactly URL in your Rublog and I believe you'll see a picture of
me with the Rajasthan Brass Band).
···
On 4/20/05, Jim Freeze <jim@freeze.org> wrote:
Hi
Does Rublog (using rdoc format) support inline images or image links?
I've tried everything and nothing seems to work.
I just get little question mark boxes or links that don't work.
I can link to an html file with:
http:Directory/File.html
but,
http:Directory/File.gif
gives me a question mark box.
and
someImg[Directory/File.gif]
yields a link, but the browser changes the case on Directory/File
and nothing is found.
Ahhhhh....unless you mount that directory with the webrick file
servlet, there is no way to directly access a file in the Rublog data
directory. Alternatively, you could also make the directory web
accessible. The way I run RubLog is that I have my data directory (in
a CVS repository) outside the normal document root of my web server,
and I serve images statically via Apache.
So, you'll either need to do that, or if you're using Webrick, you
need to modify extras/rublog_servlet.rb in the RubLog distribution and
add something like the following:
* Chad Fowler <chadfowler@gmail.com> [2005-04-21 09:46:18 +0900]:
> It should work. A validate URL for an image should generate the right tag.
>
> For example, I just created a file here called "Blah.rdoc" with the
> following contents:
> <filecontents>
> Blah
> http://www.chadfowler.com/images/brassband2.jpg
> </filecontents>
Well, that worked for me too, but, I guess the real question
is what is a valid URL for an image inside a Rublog directory?
* Chad Fowler <chadfowler@gmail.com> [2005-04-22 03:30:11 +0900]:
···
On 4/21/05, Jim Freeze <jim@freeze.org> wrote:
> * Chad Fowler <chadfowler@gmail.com> [2005-04-21 09:46:18 +0900]:
Ahhhhh....unless you mount that directory with the webrick file
servlet, there is no way to directly access a file in the Rublog data
directory. Alternatively, you could also make the directory web
accessible. The way I run RubLog is that I have my data directory (in
a CVS repository) outside the normal document root of my web server,
and I serve images statically via Apache.
So, you'll either need to do that, or if you're using Webrick, you
need to modify extras/rublog_servlet.rb in the RubLog distribution and
add something like the following: