Commit graph

27 commits

Author SHA1 Message Date
Gabor Kovesdan
f207ef1393 - LANGCODE used to resolve to "." when called from the top-level directory;
failing this resulted in bogus file removals so revert this behavior
2013-05-17 19:56:43 +00:00
Gabor Kovesdan
518b16d8e7 - The old LANGCODE detection was bogus and did not work properly with
release notes. Use a different approach that works.
2013-05-15 13:40:06 +00:00
Gabor Kovesdan
4cb9e266b6 - Remove doc.html.mk, which is not used any more
- Factor out command macros for better readability and consistency
  and less duplication
- Make some macros more consistent with the rest
2013-02-02 14:52:15 +00:00
Hiroki Sato
04627121fa Simplifiy DOC_PREFIX_REL.
Approved by:	doceng (implicit)
2012-05-17 21:57:53 +00:00
Hiroki Sato
a11323de18 Fix DOC_PREFIX_REL for English version.
Approved by:	doceng (implicit)
2012-05-17 20:49:11 +00:00
Hiroki Sato
89a02c01d7 Fix &base; definition and add DOC_PREFIX_REL for autogen.ent.
Approved by:	doceng (implicit)
2012-05-17 20:21:00 +00:00
Hiroki Sato
4fe414e55f - Move developers.sgml to the language-independent directory.
- Move files under <lang>/htdocs/share to <lang>/share.
- s/WEB_PREFIX/DOC_PREFIX/
- Update the webupdate script to use the SVN repository.
 
Approved by:	doceng (implicit)
2012-05-17 03:23:15 +00:00
Hiroki Sato
290385d7cd Prevent generation of foo.html-e files. 2012-02-11 17:59:46 +00:00
Warren Block
747f2d46e6 Add a workaround to prevent Tidy from converting tabs to spaces
by converting them to &#09; before Tidy gets them.  Then Tidy
converts them back to real tabs, not spaces.

Reviewed by:	hrs, gjb
2012-01-29 07:25:49 +00:00
Bruce A. Mah
98461ae9b3 Define ${SED} if it wasn't defined already...weird things were
happening if some other Makefile snippet didn't already define this.

Reviewed by:	hrs
2006-11-02 18:58:17 +00:00
Hiroki Sato
764a355ca7 Implement dynamic generation of &base; entity for XML documents and
activate it instead of using a static &base;.  Since an .xml database file
(or an .xslt stylesheet file) is used from various directories, the static
&base; no longer works.

PR:	www/102331
2006-08-21 18:27:43 +00:00
Hiroki Sato
3fb588c919 Fix a build breakage when the www tree is unavailable.
Spotted by:	nyan
Pointy hat to:	hrs
2005-09-18 08:19:20 +00:00
Hiroki Sato
40d1ff2285 Introduce doc.xml.mk and XMLDOCS variable to simplify build
of XML docs.  Note that XML catalog support is still incomplete.
2005-09-18 04:33:25 +00:00
Hiroki Sato
ab448daacd Add $X[MS]L_USERGROUP for usergroup.xml. 2005-07-16 09:58:33 +00:00
Martin Heinen
f1510cc0c0 Fix sorting of mirrors. Newer versions of xsltproc
add a newline after comments which breaks the pattern
used by awk.  Directly search for @sortkey@ now.

Discussed with:	hrs
2005-01-15 15:02:12 +00:00
Hiroki Sato
a13b50e98b Unbreak the build.
Pointy hat to:	hrs
2004-07-07 11:23:16 +00:00
Hiroki Sato
84f8ee0a15 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
2004-07-06 15:09:55 +00:00
Hiroki Sato
afc3a245b3 Use URLS_ABSOLUTE=yes for non-html formats and during
"make package".

Suggested by:	den
2004-05-12 12:58:12 +00:00
Hiroki Sato
413af34cb6 Reimplement absolute/relative URL knob. Urls.ent now statically
includes the both of relative and absolute URLs, and when
the URLS_ABSOLUTE make variable is defined, absolute URLs in
share/sgml/urls.ent are used.
2004-05-11 10:59:48 +00:00
Hiroki Sato
5350ccb9b2 Unbreak the build. The current URLS_ENT cannot support .OBJDIR
when .CURDIR is not under DOC_PREFIX.  This is a band-aid measure
but I will fix this soon.

Pointy hat to:	hrs
2004-05-11 10:35:19 +00:00
Denis Peplin
d25767864b Move
SRCS+= ${URLS_ENT}
from English Handbook Makefile to doc.common.mk

Reviewed by:	hrs
2004-05-11 05:52:39 +00:00
Denis Peplin
2b0f6c0e65 Use &url.main; entity in place of ../../../..
Replace &url.main; -> http://www.FreeBSD.org
when URLS_ABSOLUTE is set (for release building),
and -> ../../../.. by default (for mirror sites).

Patch was slightly modified by:	hrs
Discussed with:	des, ceri, hrs, trhodes, simon
2004-05-05 12:52:48 +00:00
Hiroki Sato
2e2010fbb7 Improve transtable.{xml,xsl}, including:
- The structure of transtable.xml is revised.  <word> should be
   bracketed with <group>.

 - A sorting order of the FreeBSD mirror sites rendered using
   mirrors.xml has been determined by sort(1).

 - A template "transtable-lookup" has been added for localization on
   word-by-word basis.

 - Replace English month names in news.xml, press.xml, and
   advisories.xml with numbers that correspond to the names.
   The number->name translation is performed on the fly.

 - Since information in mirrors.xml is used in www/ tree, it depends on
   doc/ tree now.  When WITHOUT_DOC is defined it can be built without
   doc/ tree, but some information becomes unavailable.  For example,
   a list of the mirror sites generated in index.html becomes a dummy
   one, and calling "transtable-lookup" with a word returns the word
   itself.

Neither www/ nor doc/ build should be broken due to this commit, but
until the necessary changes are applied in the localized directories,
the transtable does not work; it simply generates non-localized contents
even if transtable.xsl is used.
2004-01-12 21:27:01 +00:00
Hiroki Sato
2194b439bc Disable a guess of ${LANGCODE} from ${.CURDIR} when it is already defined.
Pointed out by:	ue
2004-01-06 23:57:46 +00:00
Hiroki Sato
944a63f930 - Fix ${LANGCODE} problem when the working directory's absolute pathname
includes "doc" and "www" simultaneously.

Spotted by:	ceri

- Use www/share/sgml/advisories.xml instead of
  www/en/security/advisories.xml.
2003-11-26 01:47:00 +00:00
Hiroki Sato
05c16e954c Trim useless commands. 2003-11-24 19:59:11 +00:00
Hiroki Sato
20bedcfcf2 Add refinements on mirrors.xml:
- add doc.common.mk, which defines variables, targets, and
   dependencies commonly used in www/ and doc/.

 - move www/<lang>/includes.xsl to the language independent
   directory and split into several files.

 - add transtable*.xsl and transtable.xml to support localized
   mirror names.

 - make doc/{en_US.ISO8859-1,ja_JP.eucJP}/books/handbook/ use
   mirrors.xml (mirrors and eresources).

 - make www/{en,ja}/index.xsl use mirrors.xml.

For details, please see doc/share/sgml/README.mirrors for the moment.

Reviewed by:	simon and Alex Dupre <sysadmin@alexdupre.com>
2003-11-24 18:26:35 +00:00