Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2002 01:24:53 +0900 (JST)
From:      Hiroki Sato <hrs@eos.ocn.ne.jp>
To:        hitmaster2k@yahoo.com
Cc:        kuriyama@imgsrc.co.jp, doc@FreeBSD.ORG
Subject:   Re: Relative link in books
Message-ID:  <20020126.012453.104024536.hrs@eos.ocn.ne.jp>
In-Reply-To: <20020125152455.76580.qmail@web21108.mail.yahoo.com>
References:  <7msn8utw8z.wl@waterblue.imgsrc.co.jp> <20020125152455.76580.qmail@web21108.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hiten Pandya <hitmaster2k@yahoo.com> wrote
  in <20020125152455.76580.qmail@web21108.mail.yahoo.com>:

hitmaster2k> I think the relative path is used for the reason that,
hitmaster2k> when this book is distributed on mirrors, it goes to
hitmaster2k> their local mirror's index.html; either way:
hitmaster2k> 
hitmaster2k> URL: http://www.FreeBSD.org
hitmaster2k> URL: / (just a slash)
hitmaster2k> 
hitmaster2k> OK, as of the above, I think the relative path should
hitmaster2k> only be a slash, and not something like ../../.. and
hitmaster2k> stuff like that.  One way or other it will go to the
hitmaster2k> local mirror's index.html page.

 No, your idea is not always applicable.  For example, Japanese
 mirror has http://www.jp.FreeBSD.org/www.FreeBSD.org/ as
 the base URI of them.

 Perhaps, to define a base URI as an entity (e.g. &wwwbase;) adaptively
 in the build process may be preferable.  Assuming that the documents
 are built for www.FreeBSD.org, we can use a relative
 URI ("../../.." style) since there would be www/en tree together.
 And if not so, we can use an absolute one.  For the both cases,
 we only need to write "&wwwbase;/index.html" into the document.

 Of course the build for www.FreeBSD.org is an exceptional case.
 I also think that any books should not depend upon the relative
 location of www/ hierarchy, and absolute path should be used
 basically for such reference.

--
| Hiroki Sato  <hrs@FreeBSD.org>
|              <hrs@eos.ocn.ne.jp>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020126.012453.104024536.hrs>