Use relative URLs when URL_RELPREFIX is defined and URLS_ABSOLUTE

is not defined.

- URL_RELPREFIX must always point the top page's URL
  (http://www.FreeBSD.org) in relative form, defined in Makefile.

- &url.base; can be used in doc/<langcode>/*.  It will be
  replaced with the real URL which points the top page.

For translators: Please make sure to define URL_RELPREFIX to
point the top page.  The localized docs have different directory
hierarchy in its URL from the English version.

Tested by:	den
This commit is contained in:
Hiroki Sato 2004-07-06 15:09:55 +00:00
parent 59859e64cb
commit 84f8ee0a15
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=21373
35 changed files with 141 additions and 75 deletions

View file

@ -15,5 +15,7 @@ INSTALL_ONLY_COMPRESSED?=
SRCS= article.sgml
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"