Commit graph

395 commits

Author SHA1 Message Date
Pav Lucistnik
6a1ea94077 - Rework jade/openjade handling.
Before: use jade on i386, openjade on !386, provide OPENJADE var for override

  Now: detect what's available, when both systems are present, use jade,
  provide OPENJADE var for override

  This change follows same logic as recent similar change in web.mk

Approved by:	keramida (mentor)
2005-08-30 19:32:46 +00:00
Murray Stokely
6f977075d0 Make HTML and PDF targets .OBJDIR clean. 2005-08-29 03:18:58 +00:00
Murray Stokely
af99d2d8b9 Exclude 'CVS' directories when making OpenOffice .sxi files (.sxi
files are just zip files).
2005-08-29 02:50:45 +00:00
Murray Stokely
2f5f2b672d Remove pointless copy of template directory.
First, zip up the template directory from /usr/doc/share/openoffice,
then use 'zip -g slides.sxi content.xml' to append a single file to
the zip archive after content.xml has been created.

Also make this target .OBJDIR clean.
2005-08-29 02:44:22 +00:00
Murray Stokely
7b589b1fa8 Add 'sxi' as a known format for the DocBook Slides infrastructure in
/usr/doc/${LANG}/slides.
2005-08-29 02:17:37 +00:00
Hiroki Sato
ab448daacd Add $X[MS]L_USERGROUP for usergroup.xml. 2005-07-16 09:58:33 +00:00
Hiroki Sato
c4f8b70665 Add a comment that explains why ${PREFIX}/share/texmf-dist/LICENSE.texmf
should be checked.

Suggested by:	simon
2005-02-20 17:14:25 +00:00
Hiroki Sato
d35150017e Add teTeX 3.0 support. This change should fix the "Fatal format file
error; I'm stymied" problem when $FORMATS is specified as "dvi", "ps",
and/or "pdf".

Spotted by:	marck
2005-02-20 16:54:37 +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
Giorgos Keramidas
17ee19c2b8 Set the default line width for FORMATS="txt" to 72 columns. This fixes,
after a very long time, the problem described in:

PR:		docs/41791
Submitted by:	Jerry Dunham <jdunham@m3designinc.com>
2005-01-10 22:00:58 +00:00
Simon L. B. Nielsen
7cfdcf77eb Tell collateindex to set the id tag (to "doc-index" in lack of better
idea for a name) so we will not get dynamic filenames for html-split
output.
2005-01-06 12:40:46 +00:00
Murray Stokely
e94633c940 Fix HTML output with multiple XML SRCs case. 2004-09-07 12:06:22 +00:00
Murray Stokely
c290cc6eff Add definitions required for using SAXON instead of libxslt when
USE_SAXON is set.  This doesn't quite work yet.

Also fix a bug in the .fo target that was uncovered when slides for a
presentation are split across multiple XML files.
2004-09-07 11:56:03 +00:00
Murray Stokely
30830727e5 Add support for using FOP or XEP as an XSL-FO backend via USE_* make
variables.  PassiveTeX is pretty limited and so the other formatters
give the stylesheets more functionality to create nice slides.
2004-09-04 19:17:35 +00:00
Murray Stokely
54ab45e845 Add support for building documents in our doc/ tree marked up in
Norman Walsh's DocBook Slides DTD.

This DTD offers the vocabulary of simplified DocBook for
presentations.  Initially, the supported output formats are PDF and
HTML.

XSL stylesheets are used so libxslt is required.

PassiveTeX is used for the PDF generation to convert the XSL-FO
directly to PDF.

This commit moves various TeX definitions out of doc.docbook.mk and
into doc.project.mk, since docbook is no longer the only back-end to
utilize TeX.

An example Makefile would look like :

----
DOCFORMAT=	slides
DOC=		slides

SRCS=	slides.xml

DOC_PREFIX?=	${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
---

And an example slides file (slides.xml) looks like :

---
<!DOCTYPE slides PUBLIC "-//Norman Walsh//DTD Slides XML V3.3.1//EN"
  "http://docbook.sourceforge.net/releases/slides/3.3.1/slides.dtd">
<slides>
<slidesinfo>
  <title>What's new in FreeBSD 5.3</title>
  <titleabbrev>FreeBSD 5.3</titleabbrev>
</slidesinfo>

<foil><title>Introduction Slide</title>
  <para>Content</para>
</foil>
</slides>
---

You could then build the HTML and PDF versions of the slides by typing
"make FORMATS='pdf html'".  Enjoy.

Please coordinate with doceng@ before importing any presentations to
doc/.
2004-09-02 17:12:14 +00:00
Murray Stokely
25e6eedd23 XSLTPROC and TIDY are not specific to either DocBook or HTML formats,
so move the associated variables to doc.project.mk instead of
duplicating the definitions for each doc type.
2004-09-02 16:42:01 +00:00
Marc Fonvieille
b15b7b88e6 Fix the RTF build:
Jade is not able to embed images but links them instead, so images have
to be installed with the .rtf document (it's similar to the HTML case).

I added a new format: rtf.tar which is a better solution than using rtf
since the images are not embedded.
make FORMATS=rtf.tar is your friend :)
2004-08-12 15:09:05 +00:00
Murray Stokely
4a479db46d Backout last change. It was already included in doc.common.mk.
Found by:	hrs
2004-08-12 05:28:42 +00:00
Murray Stokely
863ccaf4aa Always use absolute URLs for print output. 2004-08-12 03:45:39 +00:00
Murray Stokely
415cd96b9d Honor DVIPSFLAGS even if PAPERSIZE is not defined. 2004-08-11 10:51:13 +00:00
Hiroki Sato
7462d30d2f - When <langcode>/share/mk/doc.local.mk exists, it will be included
just after doc.common.mk included.  This can be used for various
  language specific customizations.

- Remove SP_ENCODING_LIST.  Translators should define the SP_ENCODING
  variable directly in their doc.local.mk when it is needed.

Discussed with:	den
2004-08-09 16:22:55 +00:00
Denis Peplin
78b44725a4 Parse ISO* encodings, convert it to ISO-* before SP_ENCODINGS assignment
Add ISO-8859-2 to SP_ENCODING_LIST
2004-08-06 09:33:17 +00:00
Denis Peplin
ee53d80ba8 Set SP_ENCODING from SP_ENCODING_LIST
Add KOI8-R to this list
Other encodings can be added after some testing

Note: KOI8-R supported by jade-1.2.1_8 and above

Reviewed by:		Dmitry Morozovsky <marck@rinet.ru>, ru
With cleanups from:	ru
No objections from:	freebsd-doc
2004-08-06 05:22:17 +00:00
Hiroki Sato
ca944c36ab Remove trailing whitespaces. 2004-07-23 18:58:56 +00:00
Hiroki Sato
c8277d756c Fix a build problem when print/ghostscript-afpl is used:
- epsgeom+gs now converts EPS files.  graphics/peps is no longer used.
 - Add $PERL, $REALPATH, and $SETENV into doc.project.mk.

Tested by:	simon
2004-07-23 18:53:34 +00:00
Murray Stokely
551eaf5b40 Add a DSSSL stylsheet to enable more efficient spellchecking. This
stylesheet omits the contents of <filename>, <devicename>,
<programlisting>, and other tags that are likely to not contain real
English words.  The output of this stylesheet can then be checked with
'make spellcheck' with far fewer false positives.
2004-07-14 05:28:11 +00:00
Hiroki Sato
eb69b4c15d Fix the lint target to use ${NSGMLSFLAGS}. 2004-07-07 13:30:49 +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
Simon L. B. Nielsen
c0dc63ac06 Really unbreak creation of PDF documents which use "shared" PNG images:
The previous fix only worked in some cases, so back it out and add a
more clean fix.  This fix also makes "make clean" work as expected again
for the shared PNG images.

The real problem is the assumption in doc.images.mk that the
${IMAGES_PDF} variable only need to contain images converted to PDF
format and not images which are already in PNG format.  We need to list
the PNG images in ${IMAGES_PDF} since they might be in a shared image
directory, and if we don't list them in ${IMAGES_PDF} they will not be
copied to the working directory and will therefor not be found during
build.

Prompted by:	phantom
2004-04-05 22:53:43 +00:00
Simon L. B. Nielsen
c187df3fbf Unbreak creation of PDF documents which use PNG images (e.g.
articles/console-server), by also copying PNG images to the working
directory during PDF build.
2004-03-24 22:57:56 +00:00
Alexey Zelkin
a4ef4bf328 We never used .docb suffix in the project tree, so do not mention it
in comments.
2004-03-24 09:52:57 +00:00
Alexey Zelkin
713a6ebd26 Introduce BZIP2_PACKAGE user defined variable which used to control
output format of 'make package'.  If BZIP2_PACKAGE is set, then .tbz
archive will be generated instead of .tgz.
2004-03-24 09:50:03 +00:00
Alexey Zelkin
7f574a3bf2 Fix 'make package' to generate valid packages
After introduction of shared images concept it was not possible to realize
how images should be put into packages, so built images references were
used.  It result up tgz file with lots filename which contained of '..'.

In order to workaround this issue I used temporary directory to install
complete packaging document, then generate PLIST based on content of
temporary directory and create actual package then.

Prodded by:	The FreeBSD Russian Documentation Project
2004-03-24 09:45:31 +00:00
Alexey Zelkin
79d9b31fc9 Unconditionally set 'NO_SUBDIR' define.
doc.docbook.mk includes bsd.subdir.mk via bsd.obj.mk which is responsible
for processing of 'SUBDIR' make variable.  But since we are handling
'SUBDIR' here explicitly, doing same thing (second time!) via
bsd.subdir.mk's rules makes no sense and only adds disk IO overhead.

It reduces install recursive calls by factor 4.
2004-03-23 23:53:27 +00:00
Hiroki Sato
ed2b02d9be Use FOO_CMD instead of FOO to avoid a conflict with a variable used
in the docproj port.  TEX, LATEX, PDFTEX, JADETEX, and PDFJADETEX
has been renamed to TEX_CMD, LATEX_CMD, PDFTEX_CMD, JADETEX_CMD, and
PDFJADETEX_CMD for consistency.  And TEXCMDS has been renamed
TEX_CMDSEQ because TEXCMDS and TEX_CMD are misleading names.

Discussed on:	-doc
2004-02-16 14:13:24 +00:00
Hiroki Sato
6b2564e38e Install TRADEMARKS.html and LEGALNOTICE.html missing in HTML.manifest. 2004-02-08 12:34:16 +00:00
Hiroki Sato
1afd84c68b Add $JADETEX and $JADEPDFTEX. 2004-02-04 16:47:22 +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
354d1cc7e5 Fix problems when ghostscript with A4=yes is used. 2003-12-30 21:41:17 +00:00
Murray Stokely
1d5eac4d80 Add a 'GREYSCALE_IMAGES' option to the print infrastructure to convert
screenshots to greyscale before embedding them in the PostScript
output.

Sponsored by:	FreeBSD Mall, Inc.
2003-12-08 02:37:02 +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
252ac09ed2 Add a workaround to unbreak the build when ghostscript built
with A4=yes is used.

Discussed on:	-doc
2003-11-24 18:34:01 +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
Hiroki Sato
8aeea9b2b6 Move lists of FreeBSD mirror sites to doc/share/sgml/mirrors.xml
(currently en_US.ISO8859-1/books/handbook/mirrors and
www/en/index.xsl use it).

Reviewed by:	simon
Discussed on:	-doc
2003-11-16 18:56:24 +00:00
Ceri Davies
636e72e5a6 Add LEGALNOTICE.html and TRADEMARKS.html to CLEANFILES when appropriate. 2003-10-02 19:46:49 +00:00
Simon L. B. Nielsen
4c6ebf3b41 Change the default Tidy options so it doesn't indent, and so it wraps
the lines at column 90, instead of the default 68.  This makes the
resulting HTML considerably smaller.

The change also band-aid a problem where Tidy wrap lines which shouldn't
have been wrapped.  This can cause extra spaces in the resulting HTML,
e.g. resulting in "( audio/lame)" instead of "(audio/lame)".

Discussed on:	-doc
2003-09-18 21:39:37 +00:00
Simon L. B. Nielsen
16d9a01672 Add support for optionally showing all trademark symbols, not just the
required symbols, by setting the make variable
WITH_ALL_TRADEMARK_SYMBOLS, to any non empty value.

This feature is mainly useful for document writers, to make sure all
trademarks are marked up correctly.
2003-09-14 13:11:43 +00:00
Marc Fonvieille
21aca1de1c Add more warnings to make lint. It should be possible now to find
empty and unclosed tags.  I used the word "should" because sometimes it
does not work, however most of malformed tags are found now.
That idea came after a talk with Denis Peplin.
2003-08-27 07:10:36 +00:00
Marc Fonvieille
f8cfbd21b0 Remove -p option from ${MKDIR} definition to avoid redundancy (options
should be specified out from the variable definition).

PR:		docs/54422
Submitted by:	Lukas Ertl <l.ertl@univie.ac.at>
2003-08-01 20:28:55 +00:00
Marc Fonvieille
efd8e60b6d Quick fix to produce correct html.tar and html.split.tar tarballs
PR:	docs/52419
2003-07-05 10:09:50 +00:00
Hiroki Sato
7ed83a52a2 Add ${PREFIX}/share/sgml/catalog.ports into ${CATALOGS} explicitly. 2003-07-03 13:02:31 +00:00
Jun Kuriyama
514993ec31 Collect catalogs only if avaiable.
In xmlcatmgr world, only ${PREFIX}/share/{sgml,xml}/catalog is
required from under ${PREFIX}.
2003-07-03 03:49:48 +00:00
Tom Rhodes
3d8fe4fa43 Quiet a few make warnings by adding a few .if statements.
bsd.obj.mk already includes bsd.subdir.mk so there is no need
to include it twice.

PR:		52540
Submitted by:	"Simon L.Nielsen" <simon@nitro.dk>
Tested with:	cd doc/ && make
2003-05-21 21:16:10 +00:00
Ceri Davies
a8bb589a42 Slightly beef up the spellcheck target so that it works for the html-split
and txt formats as well as the html format.

Reviewed by:	murray
2003-05-21 11:23:45 +00:00
Murray Stokely
a3f6280993 www/links1 is sufficient to dump HTML to text for all cases, so we
don't need to use w3m here.  Move HTML2TXT definition from doc.html.mk
to the global doc.project.mk.
2003-05-04 11:13:57 +00:00
Murray Stokely
8a01141e46 Add a simple script to locate areas of a DocBook file where
<indexterms> are sparse.  Also add makefile glue so that this may be
invoked on the Handbook or any other document in the FDP tree by
typing "make indexcheck".

Sponsored by:	FreeBSD Mall, Inc.
2003-05-04 04:59:43 +00:00
Murray Stokely
34ccdb09ce Add an ispell-based "spellcheck" target to the doc build
infrastructure.

Sponsored by:	FreeBSD Mall, Inc.
2003-05-04 04:51:09 +00:00
Hiroki Sato
f6cd99b654 Back out WITH_DOCFORMAT_NAVI_LINK?=YES in Makefile. The navi-link
is generated when ${WITH_DOCFORMAT_NAVI_LINK} is defined or
${FORMATS} includes "html" and "html-split."
2003-04-22 18:35:44 +00:00
Hiroki Sato
4f8b26641c - Add WITH_DOCFORMAT_NAVI_LINK to mk/doc.docbook.mk and
enable it in en_US.ISO8859-1/ and ja_JP.eucJP/.

- Add PUBLIC "-//FreeBSD//ENTITIES DocBook Language Specific Entities//EN"
  and l10n.ent for entity localization.

- Use share/misc/docbook.css for indentiation of <programlisting>
  and <screen>.

- Add some missing $FreeBSD$.
2003-04-19 11:39:30 +00:00
Marc Fonvieille
47f6d4e260 Commit images separation from en_US.ISO8859-1/ directory to
share/images.  To link "generic" images (share/images ones) from
Makefiles use IMAGES_EN and to link localized images use IMAGES.
For an example look at en_US.ISO8859-1/books/handbook/Makefile
2003-04-11 09:21:15 +00:00
Ceri Davies
9486dcc1b3 Now that the docproj port is updated accordingly, use version 4.2 of the
docbook-xml DTD when building with the xsl stylesheet.
2003-04-09 22:46:30 +00:00
Ceri Davies
86d10cdda4 Clean up properly when STYLESHEET_TYPE is set to "xsl".
Reviewed by:	trhodes
2003-04-08 22:00:23 +00:00
Hiroki Sato
dec7f3cd8e Add the following knobs for the DocBook DSSSL stylesheets:
- WITH_INLINE_LEGALNOTICE (for HTML only):
     do not render <legalnotice> as a separate file if defined.

 - WITH_ARTICLE_TOC:
     generate TOC for documents whose root element is <article> if defined.

 - WITH_BIBLIOXREF_TITLE:
     for cross references to bibliography entries, use the title of
     the entry as the cross reference text, if defined.
2003-02-16 14:59:30 +00:00
Marc Fonvieille
53756ddd2e Add ${DOC}.ps in pdf target CLEANFILES, this is needed to correctly clean
the Handbook build in pdf format.
2003-02-01 15:14:40 +00:00
Ceri Davies
5cf784715b Add $LOCAL_IMAGES_LIB_DIR to $CLEANDIRS.
Not objected to by:	doc
2003-01-31 17:26:53 +00:00
Marc Fonvieille
e08cad3e13 Add ${DOC}.tex to CLEANFILES list of ps and pdf formats. 2002-12-29 13:01:16 +00:00
Tom Rhodes
50f6365c86 Create XHTML documents in place of HTML4 documents with a small alteration
to the *.mk files.
2002-12-27 00:25:42 +00:00
Marc Fonvieille
e8c9249f77 Add some ${LOCAL_IMAGES_TXT} where needed to allow the build of various
formats: rtf and pdf.

Problem found by:	ceri
2002-12-07 20:12:45 +00:00
Ceri Davies
ac307bceb7 s/seperate/separate/ 2002-11-20 19:41:10 +00:00
Thomas Moestl
67ac4e1d30 Use openjade on all non-i386 platforms, not just alpha.
Reviewed by:	-doc
2002-11-10 14:39:46 +00:00
Marc Fonvieille
6c9a428eee Remove my dirty hack, it's useless with doc.docbook.mk changes. 2002-11-02 21:45:53 +00:00
Marc Fonvieille
c5ec91e7cc Add ${LOCAL_IMAGES_TXT} variable where needed to allow the creation of
.txt images.

Submitted by:	nik
2002-11-02 21:34:57 +00:00
Marc Fonvieille
88477ef95f Quick hack to allow build of the Handbook with .txt files.
textproc/scr2txt must also be on the system.

The .txt files are created on the fly with .png ones.  This is not
perfect, but it allows mirrors to build docs.
2002-10-30 10:06:03 +00:00
Nik Clayton
bae6e2b3ef Add the ${LOCAL_IMAGES_TXT} variable as a dependency in the html-text
target, ensuring that any .txt files that need to be generated for the
document will be.
2002-10-28 19:44:08 +00:00
Nik Clayton
eece7f02d3 Add in the necessary framework so that in the "FORMATS=txt" case, any
.scr files in the ${IMAGES} list are automatically converted to their
plain text equivalents.
2002-10-28 19:41:55 +00:00
Marc Fonvieille
a89acfe274 Allow the use of graphic files from en_US.ISO8859-1/ directory for
localized docs.

For example in the Handbook Makefile, an image entry will be similar to:

IMAGES = ../../../en_US.ISO8859-1/books/handbook/install/userconfig.scr

the image will be built in that directory and then installed in the right
localized place at installation time.

Some versions of ghostscript (7.04) have problems with the use of
relative path when the arguments are passed by peps; a fix was
added.

Reviewed and discussed with:	murray
2002-10-12 10:53:52 +00:00
Murray Stokely
9089b6feca Remove CSS_SHEET from .OBJDIR during `make clean'.
Submitted by:	 Cyrille Lefevre <cyrille.lefevre@laposte.net>
2002-07-07 05:05:46 +00:00
Nik Clayton
7d0a752f13 Add support for generating {book,article}.xml from {book,article}.sgml.
Add support for using the XSL stylesheets to generate HTML output using
XSLT transforms, rather than using JadeTeX.  So (assuming you have
installed xsltproc from ports/textproc/libxslt, and the docbook-xsl
stylesheets), you can now do

    make STYLESHEET_TYPE=xsl FORMATS=html

and get HTML output that way.
2002-06-04 11:40:17 +00:00
Nik Clayton
b37249481e Use the project's default.xsl file in favour of the stylesheet default. 2002-05-05 16:22:58 +00:00
Nik Clayton
3fb94de348 Add enough of a framework so that "make STYLESHEET_TYPE=xsl FORMATS=html"
now works.

For limited values of "works".  None of the FreeBSD extensions to the
DocBook DTD are currently recognised, for example.
2002-05-05 16:06:19 +00:00
Nik Clayton
f89cff1e15 Add a STYLESHEET_TYPE variable, which defaults to 'dsssl'. When set to
'xsl' a different set of rules are invoked to use an XSL toolchain
(processors, stylesheets, and so forth) to convert the DocBook to the
various different output formats.

I haven't actually written the rules that are invoked when this knob is
set to 'xsl'.  But how hard can it be. . .
2002-05-05 15:30:06 +00:00
Murray Stokely
38efb3d25a Add a new print-output build variable for the doc project, 'RLE'.
If defined, EPS files are run length encoded before being integrated
into the PostScript output.

  "make book.ps" currently generates a 96 megabyte file.
  "make RLE=1 book.ps" generates a 16 megabyte file.

If we added a tool to use better (LZW) compression for the eps
screenshots and such, then we could reduce this number further.
2002-04-22 08:59:03 +00:00
Bruce A. Mah
489a87ef81 MFP4 (change 8929):
Don't make the assumption that source files are writable.
	The FDP infrastructure has a few constructs of the form
	"cp foo bar; cat baz >> bar".  This breaks if foo isn't
	writable (as is frequently the case in P4 work directory).
2002-04-12 18:13:37 +00:00
Murray Stokely
bf6eeb13b4 Netscape 4.X does not support the '@import' directive in CSS
stylesheets.  To get around this, append the filename specified in the
'CSS_SHEET_ADDITIONS' variable (if defined) to the end of the default
CSS stylesheet.  This allows us to add document-specific stylesheet
rules while still supporting braindead browsers and reusing the
default CSS code.
2002-02-25 14:24:51 +00:00
Dima Dorfman
bac6b91b50 To determine LANGCODE, we look for a directory named "doc" below
CURDIR.  This causes problems when one wants to have multiple doc/
trees checked out at once because it requires every tree to be in a
directory called "doc"; i.e., one must have <name-of-tree>/doc/
instead of just <name-of-tree>/ like one can do with src/.  Mitigate
the pain by making it possible to tell the build infrastructure what
the doc prefix is called; this still isn't perfect since it requires
2002-02-10 22:05:13 +00:00
Dima Dorfman
269bf639ac Update a comment. 2002-02-10 10:11:02 +00:00
Bruce A. Mah
dde19dfed1 Teach the doc tree how to convert PIC diagrams to PDF files
in a OBJDIR-friendly way.
2002-02-06 16:26:41 +00:00
Murray Stokely
d5a4400b57 Teach the doc tree how to convert PIC diagrams to PNG and EPS files
in a OBJDIR-friendly way.
2002-02-02 20:30:55 +00:00
Murray Stokely
0e36f3ddca Add command variables for PS2EPS, PIC2PS, and groff so that we can use
PIC diagrams in the doc tree.
2002-01-02 01:10:37 +00:00
Murray Stokely
1246adb2b2 Pass the TEXCMDS variable to pdftex when generating a PDF file, so
that optional features such as two-sided output and justification work
for PDF files, not just PostScript.

PR:		docs/32849
Submitted by:	Peter Johnson <freebsd@bilogic.org>
2002-01-01 08:41:19 +00:00
Murray Stokely
79c09bbbdf Add a command variable for 'LATEX' so we can draw figures using LATEX
and then convert them to .eps files with dvips -E.
2002-01-01 05:30:49 +00:00
Alexey Zelkin
987c1c8bed Add new make target 'cleanall'. Its responsibility is to remove *all*
possible generated files (make clean is called for all known formats).

It can be useful when default FORMATS for document has different value
than was used in build.

Reviewed by:	nik
2001-12-13 23:51:26 +00:00
Alexey Zelkin
54cf68eab2 Force tidy(1) to use '-raw' and newly added '-preserve' options
to process generated HTML. This not cause any side effects except
leaving some character entities in their numeric form instead
converting them into alphabetical notation (&#60; instead of &lt;),
but since all browsers understand such cases it is not a problem.

This commit should make all translations tidy clean, since
tidy should not arise entities conversion problem as it did
for long time before. Therefore all occurences of manual settings
of TIDYFLAGS and NO_TIDY declarations for translations are removed.

No objections from: -doc
Requested by: Russian and Japanese translation teams
2001-12-12 11:49:38 +00:00
Murray Stokely
0361e0a8d3 Rework our index support.
* Add a new document-specific variable, HAS_INDEX, to specify if a
    given document is marked up with <indexterm> entries.

  * Rework the index support so that both HAS_INDEX and GEN_INDEX are
    checked before trying to generate an index for a document.

  * Only create index.sgml if both HAS_INDEX and GEN_INDEX are set.

This allows us to recursively build the documentation tree with
GEN_INDEX=1 and have it only try to create an index (very time
consuming) for the few documents that are ready for this.  Previously,
running "make GEN_INDEX=1" from the top of the doc tree would look for
index terms in every single document.

With this, I hope we can start building our docs with GEN_INDEX set on
freefall so that users browsing the HTML docs will get the benefit of
the index we've been hiding in CVS for 6 months.
2001-11-19 06:11:16 +00:00
Murray Stokely
c9252fd82e Fix typo in last commit. 2001-11-06 04:27:39 +00:00
Murray Stokely
f646abd75f Add a ISO8879 catalog entry.
Submitted by:	Cyrille Lefevre <clefevre@citeweb.net>
2001-11-05 10:43:17 +00:00
Murray Stokely
4ffcb3417b Make the TIDYFLAGS/TIDYOPTS usage homologous to the rest of the make
variables in the doc infrastructure.  Fixes several small bugs.

PR:		docs/31703
Submitted by:	Akio Morita <amorita@FreeBSD.org>
2001-11-05 10:33:38 +00:00
Bruce A. Mah
274215c5ca Unbreak PDF file building. 2001-10-30 21:37:53 +00:00
Murray Stokely
58a809138a Add a declaration missing from the last commit. 2001-10-29 10:52:52 +00:00
Murray Stokely
f92319a1b1 Make build/install /usr/obj prefix clean.
Also fix several minor bugs here, such as leftover files not being
deleted after 'make clean'.

PR:		docs/31131
Submitted by:	Cyrille Lefevre <clefevre@citeweb.net>
2001-10-29 09:21:53 +00:00
Murray Stokely
04a95c21db Fix `make lint' for the handbook by hiding the index behind a
parameter entity.
2001-10-04 09:40:31 +00:00
Murray Stokely
8577fa90a4 Add a knob to trace TeX's memory usage. This is useful when you're
using tons of different macro packages (like we do) and something is
misbehaving. ``make TRACE=1 book.ps''
2001-09-17 09:45:01 +00:00
Murray Stokely
f7fcffd6d4 Add support for cascading stylesheets and images for documents with
HTML as a source format.
2001-09-13 07:26:48 +00:00
Murray Stokely
486bf4abfd Turn on -ioutput.print.twoside in the TWO_SIDE=1 case (which is also
the BOOK_OUTPUT=1 case).
2001-09-11 02:32:32 +00:00
Murray Stokely
2bd7f72656 Add justification to the list of features that
'make BOOK_OUTPUT=1 book.ps' gives you.
2001-09-11 00:38:32 +00:00
Murray Stokely
eca1d05330 Add a new option 'JUSTIFY' which can be used to tell the TeX backend
to make the paragraphs right justified using TeX's default hyphenation
rules.  We still must add some hooks to certain elements (URLs) to
deal with special cases that TeX can't hyphenate well.
2001-09-08 01:59:22 +00:00
Murray Stokely
a36b0de6c7 Add two new options to our documentation infrastructure.
TWO_SIDE    - If defined, two sided output will be created.  This
                  means that new chapters will only start on odd
                  numbered (aka right side, aka recto) pages and the
                  headers and footers will be aligned appropriately
                  for double sided paper.  Blank pages may be added as
                  needed.

    BOOK_OUTPUT - If defined, this will set all of the other
                  print-output options that can significantly increase
                  the build time, but make for much nicer looking
                  output.

To implement the two sided output, we need to override a TeX variable
to control the behavior of the JadeTeX macro package.  So this also
introduces a TEXCMDS variable that can be set with additional TeX
commands that should be run before processing the input TeX document.
In the TWO_SIDE case, we simply set it to \def\PageTwoSide{1}
2001-09-07 10:21:41 +00:00
Murray Stokely
e90bee4e01 Add a new target to the Handbook makefile: 'pgpkeyring'.
This target finds all <programlisting role="pgpkey"> elements in the
Handbook and writes out a flat text file suitable for importing into
PGP or GPG.

This can be used in the web build to automatically update the public
keyring of FreeBSD developers.
2001-08-23 07:59:07 +00:00
Nik Clayton
8a0bc3bfb8 Discover the -s parameter to pkg_create, and remove the dependency on
installing the files before packaging them up.
2001-08-22 22:30:26 +00:00
Dima Dorfman
b72265ea42 An increasing amount of documents use the -V flag to Jade via
JADEFLAGS to set variables such as %generate-article-toc%.  However,
JADEFLAGS is also passed to nsgmls, which doesn't, and shouldn't,
understand -V.  The Makefiles which do this are correct, because the
name--JADEFLAGS--implies that it will only be passed to Jade, not to
nsgmls, too.  Furthermore, simply not passing JADEFLAGS to nsgmls is
not okay, since nsgmls *does* need the -i flags used to
include/exclude certain parts of the document.

Remedy this by breaking up JADEFLAGS into itself and SGMLFLAGS.  The
latter will be passed to all SGML processors such as nsgmls and Jade.
The former will only be passed to Jade.  The -V flags should stay in
JADEFLAGS, and the -i flags should be moved to SGMLFLAGS.

This fixes `make lint` for documents which use -V via JADEFLAGS.

Reviewed by:	bmah
2001-08-16 05:19:51 +00:00
Murray Stokely
388ddee70e Add scr -> png -> eps support, so that we can build Randy's new
Installation chapter with spiffy color screenshots of sysinstall.
2001-08-14 21:51:25 +00:00
Murray Stokely
f9ccc49092 Add a new tunable knob 'MIN_SECT_LABELS' and the necessary stylesheet
support.

This option prevents section labels from being numbered after the third
level.

make FORMATS=ps :

  "N.N.N Section Title"
  "N.N.N.N really specific topic"
  "N.N.N.N.N really-really specific topic"

make MIN_SECT_LABELS=1 FORMATS=ps :

  "N.N.N Section Title"
  "really specific topic"
  "really-really specific topic"

The section titles are still bold, spaced away from the text, and
sized according to their nesting level.
2001-07-28 03:00:03 +00:00
Murray Stokely
abaf57a792 Allow NICE_HEADERS to be used in the GEN_INDEX case.
NICE_HEADERS is a set of print-only enhancements, however the HTML
backend is invoked whenever an index is generated, so we should not
touch JADEOPTS directly and should instead modify the .tex-ps target
directly.
2001-07-21 03:44:27 +00:00
Nik Clayton
9524fc725a Add JADEFLAGS to the nsgmls command line, so that any special "-i" settings
get passed down properly.  This fixes "make lint" for the Handbook, now that
the chapters are individually buildable.
2001-07-16 15:11:54 +00:00
Murray Stokely
213a66a8d3 Introduce a 'NICE_HEADERS' tuneable knob that creates customized
chapter headers that you may find more aesthetically pleasing than the
rather spartan chapter headers in Norm's print stylesheets.  This
option only effects print output formats for English language books.

Also move the local-en-label-title-sep customization from share/sgml
to en_blah/share/sgml since the best values for this customization
depend on the locale.

This changes (make FORMATS=ps) :

    Chapter 7. Users and Basic Account Management

    7.1. Synopsis

into (make NICE_HEADERS=1 FORMATS=ps) :

    Chapter 7
    /Users and Basic Account Management/

    7.1  Synopsis

More work needs to be done for the NICE_HEADERS case to enhance the
output, but I think its an improvement.
2001-07-16 05:00:21 +00:00
Chris Costello
dde382c2b4 Add a dependancy on ${CSS_SHEET} for the docbook.css target. Without this,
one must run a `make clean' (or `rm docbook.css') or the stylesheet is not
updated, regardless of whether or not it's been updated since the last
build.
2001-07-14 18:04:06 +00:00
Nik Clayton
9e7e408f55 Use peps instead of eps2png. 2001-07-13 12:09:59 +00:00
Dima Dorfman
350f5b2b24 Add INDEX_SGML and docbook.css to CLEANFILES as appropriate.
PR:		28864
Submitted by:	Alex Kapranoff <kapr@acm.org>
2001-07-12 00:24:59 +00:00
Murray Stokely
088000e692 Slight modification to support the case where a document contains
indexterms, but we don't want to generate the index.

Specifically, touch the ${INDEX_SGML} file if ${GEN_INDEX} is not set.

Suggested by: Nik
2001-07-10 03:06:48 +00:00
Nik Clayton
6887d21569 Add a new variable, EPS2PNG_RES, to set the resolution eps2png uses to
convert graphics.  Change the default from 82 to 100, for clearer images.

PR:		docs/28237
Submitted by:	G. Adam Stanislav <adam@whizkidtech.net>

While I'm here, include some suffix rules to convert .scr files to .png
files.  Nothing uses these, yet, but should do shortly.
2001-06-22 10:12:23 +00:00
Chris Costello
1d6177220b Null commit:
Apparently either my editor or CVS appended a new-line at the end
  of this file, which was a part of the previous delta.
2001-06-21 03:03:51 +00:00
Chris Costello
a7db143730 Include ${LANGUAGECATALOG} in `make validate' nsgmls command line arguments. 2001-06-21 02:55:59 +00:00
Nik Clayton
e4bca6fe83 Pull in docbook.css as necessary. 2001-06-18 14:24:08 +00:00
Nik Clayton
5c75be36bd Rewrite the index generation support -- this seems to do the right thing,
and doesn't break the build in the non-GEN_INDEX case, so it's safe to
commit.  I need more people testing it though.
2001-06-16 14:11:52 +00:00
Andrey A. Chernov
f749b200c1 ISO_* -> ISO* rename 2001-06-11 01:20:40 +00:00
Dima Dorfman
8140e08d69 Bump the number of directories traversed to find LANGCODE to 10. This
isn't a problem yet, but I did run into it in my local builds a few
times, and I thought it'd be better to raise it now to make sure
nothing magically breaks later.

Silence by:	-doc
2001-05-22 03:18:38 +00:00
Nik Clayton
f3866f36b1 Make the eps2png and epstopdf commands OBJDIR safe.
Submitted by:	Christian Weisgerber <naddy@mips.inka.de>
2001-05-09 19:31:47 +00:00
Nik Clayton
d058817a01 Fix small error that meant that library images weren't being included in
any generated tarballs.
2001-03-27 16:15:07 +00:00
David E. O'Brien
3cdf03e3f3 If running on the Alpha, use OpenJade.
Forgotten by:	who ever did the doc.docbook.mk Alpha support
Silence by:	doc@freebsd.org
2001-03-22 22:49:01 +00:00
David E. O'Brien
e6e620e787 Separate the Alpha arch test and the OPENJADE test. This also gets
"OPENJADE" exported in the Alpha case so it matches the non-Alpha case.

Silence by:	doc@freebsd.org
2001-03-22 22:47:32 +00:00
Alexander Langer
b250ca7d11 Now really do use openjade on alpha.
PR:		25891
Submitted by:	Christian Weisgerber <naddy@mips.inka.de>
2001-03-18 15:48:10 +00:00
Nik Clayton
e64d4df877 Finish off the previous commit by removing the -S flag from the links
command line, which is not supported in links (but was in w3m).
2001-03-13 18:29:06 +00:00
Nik Clayton
ff2f53e45a Honour $LOCALBASE when setting $PREFIX.
PR:		docs/25496
Submitted by:	Mike Meyer <mwm@mired.org>
2001-03-13 09:54:34 +00:00
Jim Mock
c371a0a7a7 w3m -> links
Submitted by:	jkh, dd
2001-03-13 03:03:46 +00:00
Nik Clayton
66417ff8b0 Use openjade if we're on an Alpha. Use links instead of w3m. 2001-03-11 18:26:06 +00:00
Nik Clayton
3df699389c Use a different mechanism to specify the input file to TeX.
<aph>  running, for instance, "jadetex '\nonstopmode\input{$<}'" is much
       better since it won't crash out an automated build as badly
<nik_> Huh?
<aph>  it will fail rather than kick you into a TeX prompt and wait for output
<aph>  I guess in BSD make that would be:
<aph>  jadetex '\nonstopmode\input{${.ALLSRC}'

Submitted by:	Adam di Carlo <adam@onshore.com>
2001-02-26 22:56:59 +00:00
Nik Clayton
fc20bd6c53 1. Add a new knob, GEN_INDEX. If defined (nothing does yet), collateindex.pl
will be run to generate index.sgml, an automatically generated index for
the document.  This is also added to the list of dependencies.

2. Add a DOCBOOKSUFFIX variable, defaulting to "sgml", so we can write

   MASTERDOC?=  ${.CURDIR}/${DOC}.${DOCBOOKSUFFIX}

Requested by:   Michael Wiedmann <mw@miwie.in-berlin.de>
                Linux Documentation Project

3. Set the DSSSL 'openjade' variable to #t if we're processing with
   OpenJade.

4. Work around a bug in the stylesheets.  If we split the <legalnotice>
   out in to a separate file it isn't added to the HTML.manifest.  Check
   for it by hand, and include it if necessary.
2001-02-22 15:42:41 +00:00
Nik Clayton
88abf1e8bb Better image support. Use Ghostscript and NetPBM, rather than simply
relying on ImageMagick.
2001-02-20 19:08:58 +00:00
Nik Clayton
378340c7fe Use epstopdf (from teTeX) rather than ImageMagick to convert EPS to PDF
files.  The results seem to be nicer.
2001-02-12 17:03:54 +00:00
Jun Kuriyama
a2bdbe7902 Remove ${.TARGET} if jade failed. 2000-10-31 14:39:13 +00:00
Nik Clayton
7c4206c1aa Support installing images where the document and images are split up over
multiple directories, the way (for example) that the Handbook is.
2000-10-29 18:01:54 +00:00
Nik Clayton
324f84d204 LIB_IMAGES -> IMAGES_LIB, to be consistent with IMAGES_PNG and IMAGES_EPS
Extend the image support.  Now handles the "install" part for HTML, PS, and
PDF, as well as packaging.

Better support for images in the PDF output.  I'm still trying to figure out
how to get good quality PDF from EPS source though.
2000-10-29 02:39:10 +00:00
Jun Kuriyama
5daef3227b Temporary fix to make this buildable.
Submitted by:	crossd@cs.rpi.edu
2000-10-10 06:16:56 +00:00
Nik Clayton
3197343458 Support images in the documentation.
For producing text-only docs, we need to have a second HTML target.

The PS and PDF targets (which depended on a .tex file) have been split
out so that they each depend on their own .tex-${format} file, to get
the image formats correct.
2000-10-08 19:19:09 +00:00
Nik Clayton
107896244a Initial support for images within the documentation. Support EPS and PNG
format images.  Assume that ImageMagick has been installed -- this is a
big requirement, and will be refined before this gets much further.
2000-10-08 19:17:42 +00:00
Nik Clayton
4d20c32be9 Add a comment to sync this with my local repository. 2000-10-08 19:16:32 +00:00
Neil Blakey-Milner
a15fa475b5 Make 'make lint' work again. Obviously no-one uses it. (:
(I forgot to set NSGMLS)
2000-10-07 16:31:04 +00:00
Neil Blakey-Milner
c97832896f If OPENJADE is defined, use the openjade replacement tools like
'openjade', 'onsgmls', like 'osgmlnorm'.
2000-09-28 23:34:49 +00:00
Neil Blakey-Milner
1c78f1c07d a) "Fix" out-of-tree builds by not hard-coding locations of dsl files
with SYSTEM, and using instead PUBLIC entities gained from the catalog
in the directory of the language the document belongs to, or the
language-neutral entity.  Now we always use default.dsl as our dsl
master, and it grabs the necessary magic from the catalogs.

b) Fix the always-out-of-date imagelib problem with some make(1)-fu.

Approved by:	nik (ages ago)
2000-09-28 23:29:48 +00:00
Nik Clayton
a9b9a2fe08 Add ${DSSSLCATALOG} and ${JADECATALOG} to the list of catalogs the lint:
target uses -- this ensures that any options (such as "OMITTAG NO") that
are used when building the docs are also used when linting them, so that
errors don't slip through the cracks.

Prompted by r1.93 of the FAQ.
2000-09-25 08:17:03 +00:00
Nik Clayton
460016ce35 Fix the handling of unsupported formats (like "html-split") in doc.html.mk.
Output a non-fatal warning for these.  For unknown formats output a fatal
error.
2000-07-23 16:27:58 +00:00
John Baldwin
3ac389f2d4 Don't allow html-split to be treated as a format during install.
Admittedly, this is a hack, and the real solution is to sanitize FORMATS
by removing any words that aren't in KNOWN_FORMATS.  This fixes release
since releases uses 'html html-split txt' for FORMATS when it compiles and
installs the docs.
2000-07-19 01:46:48 +00:00
Nik Clayton
f631452350 doc.images.mk
LOCAL_LIB_IMAGES_DIR should be a path component, not a complete path, so
remove ${.CURDIR}.

doc.docbook.mk

Set the directory for image installation correctly, and ensure that the
directory exists before we try and do anything with it.

These should fix the installation problems people are having with the
primer.  There's still an outstanding bug -- make(1) thinks that the
local library images are out-of-date with respect to the ones in
share/images for some reason.  This forces a rebuild each time.  I'm
still looking at that.
2000-07-18 16:30:45 +00:00
Nik Clayton
693df4dc05 Fix the problem where <foo>.html.gz was being listed as a dependency, and
we don't need it anymore.

I'm fixing this from Kirk's tutorial at the O'Reilly Open Source conference.
He was no help at all. . .
2000-07-17 22:30:03 +00:00
Neil Blakey-Milner
279c23a44c LANGCODE, not LANG_CODE. Of course, it passed testing, because
doc//share/sgml/freebsd.dsl exists.
2000-07-17 08:51:38 +00:00
Nik Clayton
69a59546e0 Make sure the LOCAL_LIB_IMAGES_DIR directory is cleaned appropriately. 2000-07-16 16:34:08 +00:00
Nik Clayton
57f6bf9869 Support library images. Do this by
1.  Listing LIB_IMAGES as a dependency on certain targets, to ensure
    that library images are pulled in correctly.

2.  Create a new FORMAT, html.tar, to cater for the case where we might
    be producing a single .html file, but we need to tar that up for
    distribution and the tar file needs to include all the images.

3.  Update the various install-* targets to include the images.

4.  Update the package-* targets to include the images

While I'm here, pull out the .doc target.  For some reason I thought our
tool chain could produce Microsoft Word .doc files.  It can't.
2000-07-16 16:32:27 +00:00
Nik Clayton
03f0782120 Pull in doc.images.mk as necessary.
Also pull in doc.html.mk when DOCFORMAT==html, something I missed from
an earlier commit.
2000-07-16 16:29:18 +00:00
Nik Clayton
f24bb0a201 Image support in the documentation. For the time being, just support
library images (and in particular the callout bugs).
2000-07-16 16:27:30 +00:00
Neil Blakey-Milner
2d8415a9de 1) Use non-relative path to the DSL location, which makes external
document building work again.

2) Add support for building html documents, which is required for
ipsec-must document.
2000-07-14 08:42:49 +00:00
Nik Clayton
2ee393d1be Support infrastructure for HTML documents in the doc/ tree. 2000-06-26 09:04:24 +00:00
Jun Kuriyama
931dd61f12 Do xargs only if HTML.manifest is exist. 2000-04-29 07:46:15 +00:00
Neil Blakey-Milner
4dfd8b3329 Fix the new localized dsl stuff for the obj build case. 2000-03-24 19:31:34 +00:00
Nik Clayton
a595525171 Give each language and encoding it's own freebsd.dsl, to contain style
sheet definitions for that language only.  Each file reads in the defaults
from the master share/sgml/freebsd.dsl file, and adds overrides, or new
definitions, as necessary.

Move the per-language hacks from share/sgml/freebsd.dsl in to
<lang>/share/sgml/freebsd.dsl as necessary.

Add links to the -questions and -doc mailing lists to the bottom of the
generated HTML output for some languages.  The -questions link will
become a link to Greg's "Getting the most from questions" document when
I bring that in, but I haven't done that yet, and I didn't want these
patches hanging around my local tree.

This was the real reason for making freebsd.dsl language local, as it
makes it much easier to translate generated text, such as the text of
the links, without polluting share/sgml/freebsd.dsl.

Update doc.docbook.mk to use the new, per-language freebsd.dsl file when
building the docs.  While I'm here, update .pdb generation so that it
creates a symlink to ${CURDIR:T}.pdb as well (e.g., the Handbook generates
"book.pdb" and "handbook.pdb").  This makes it easier to install more than
one document on a Palm, because two docs called "book.pdb" or "article.pdb"
can not co-exist.
2000-03-23 09:00:17 +00:00
Neil Blakey-Milner
5d2e8b1141 Fix an obj error in the lint/validate target. 2000-03-08 11:21:37 +00:00
Jun Kuriyama
4182f5b9e7 Add NO_TIDY variable to disable tidy.
Tidy cannot handle EUC-JP codepoint range correctly with -raw option.
I will try to fix this problem, but temporary disable to use tidy in
Japanese Handbook and FAQ.
2000-02-03 03:10:43 +00:00
Nik Clayton
8be525f5f5 Allow DSLHTML and DSLPRINT to be overridden ("...=" -> "...?=").
Requested by:	Chris Costello
2000-01-24 20:02:50 +00:00
Nik Clayton
e4fb9fb481 Use w3m instead of lynx to format the text versions. It's table handling
is superior, and the various translation teams are fine with it.

Use iSilo instead of pilot-makedoc to produce Palm compatible files.  It
works from the HTML and retains the formatting (including the internal
links) making it much nicer to work with than the output from pilot-makedoc.
1999-12-24 01:25:27 +00:00
Nik Clayton
85eff2b01e Nuke this. It's been superceded by the doc.*.mk files. It should have
been wiped some time ago.
1999-12-14 16:54:32 +00:00
Nik Clayton
535b364c47 Experimental support for building Palm Pilot DOC format files. The result
works, but isn't great (at least in SmartDOC).  Still, if you want to carry
the FreeBSD FAQ on your Palm (or the Handbook for that matter) it's a start.

PR:             docs/13439
Submitted by:   Slaven Rezic <eserte@cs.tu-berlin.de>
1999-12-13 18:14:41 +00:00
Nik Clayton
ab3a40fe62 Change the invocation of tidy(1) in the index.html target to only update
the .html files that have been built, instead of all of them.  Fixes a bug
where "make FORMATS='html-split html'" would only update the split HTML
files.

Reported by:    Mark Ovens <mark@ukug.uk.FreeBSD.org>
Submitted by:   Neil Blakey-Milner <nbm@mithrandir.moria.org>
1999-11-01 19:41:02 +00:00
Alexey Zelkin
b9ae21e11c Typo fixes
Remove duplicated DOCDIR description in comments
1999-10-13 00:42:21 +00:00
Jesus Rodriguez Cuesta
f8da7adcf2 Fix handbook symlink install problem with old version installed
PR:		docs/14163
Submitted by:	nbm@rucus.ru.ac.za
1999-10-06 14:00:17 +00:00
Wolfram Schneider
40231e0ef1 Use install opiton -C for installing files. 1999-09-09 17:11:28 +00:00
Peter Wemm
5ff728b8ca $Id$ -> $FreeBSD$ 1999-09-06 06:53:43 +00:00
Nik Clayton
7d4a994791 New make(1) infrastructure. Split out docproj.docbook.mk into a number
of smaller doc.<foo>.mk files, reflecting the functionality they contain.
Long overdue, kudos to the submitter for the carrying out the work.

Also makes the files independent of the system include files that
normally live in /usr/share/mk, making it easier for non-FreeBSD systems
to download and build our docs (an important factor in making it easier
to share our work with other projects).

Finally, it (in theory) lets you build the docs with a r/o doc/ directory.

Changes to the submitted files:

doc.docbook.mk    The HTML generation depends on ${DSLHTML}, and the
                  print generation depends on ${DSLPRINT}.  Changing
                  these files will force a rebuild (which makes testing
                  changes a little easier).

                  Removed ${DOC}.doc target.  It's a hangover from when
                  I (mistakenly) thought that Jade could generate MS Word
                  .doc files.

                  Added support for using compress(1) to build .Z files
                  (been on my todo list for ages).

                  Fixed a couple of typos.

Submitted by:   Neil Blakey-Milner <nbm@mithrandr.moria.org>
1999-09-03 17:07:19 +00:00
Nik Clayton
de9128a949 Define new LANGCODE variable, which should contain the language name
and encoding for the documentation that's currently being built (e.g.,
'en_US.ISO_8859-1', or 'es_ES.ISO_8859-1').  Used when building packages
to create part of the package file name.  Setting this involves an
'interesting' kludge -- suggestions for how better to achieve this within
make(1) welcomed.

package-*:
    No need to remove PLIST, it's always overwritten.

    Create empty COMMENT and DESCR files if they don't exist.  Makes it
    easier to test this, without committing COMMENT and DESCR files all
    over the tree.

    Use the ${LANGCODE} variable in the package name.  For example,
    the HTML pkg for the FAQ now looks like faq.en_US.ISO_8859-1.html.tgz,
    instead of just faq.html.tgz.
1999-08-28 09:50:49 +00:00
Nik Clayton
ee685fdd2c 1. Fix a subtle bug in the use of ${DOC}. If you ran make(1) and defined
${FORMATS} on the command line then it would assume that you wanted to
   build a document in the current directory, based on the setting of ${DOC}.
   If ${DOC} wasn't set, it defaulted to the name of the current directory.

   Any Makefile that includes this, and expects to have documentation built
   in the current directory must now explicitly define DOC.  All the current
   ones do anyway.  This should be a non-problem when docproj.docbook.mk is
   split out in to smaller, more modular files.

   Move the comments for DOC from the non-mandatory to the mandatory
   section.

2. Clarify the meaning of DESTDIR, it's changed a little bit since it was
   first documented.

3. Initial, tentative support for building pkg_* packages from the
   formatted documentation.  Needs work, but I've had the patch out for
   review for a couple of days, and no comments either way -- so if
   people hate it, this should at least spur them on to say so.

       # cd /path/to/doc/to/turn/into/a/package
       # touch COMMENT DESCR
       # make 'FORMATS=this that and the other' package

   to build 'n' packages, one per format.  "make install" is run as part
   of the package dependency, so this will overwrite documentation you
   have already got installed.

4. Remove DOC_INSTALL_PREFIX.  Should have been DOCDIR from the start.
1999-08-26 19:37:13 +00:00
Nik Clayton
c98917fd5d Use a conditional assignment "?=" when defining DOC_INSTALL_PREFIX 1999-08-19 00:07:09 +00:00
Nik Clayton
77ab53e851 "-chown" was falling over when ${FORMAT} == html-split. Move the "-" to
the surrounding "for" loop.
1999-08-18 18:46:58 +00:00
Nik Clayton
28ded3fede Add DESTDIR and DOC_INSTALL_PREFIX variables.
Pull in ../Makefile.inc if it exists.

Don't use install(1), use cp(1), chmod(1), and chown(1).  That way non-root
users can install the files without install(1) complaining about the
inability to change the owners.

Nuke the "distribute" target.  We don't need it where we're going. . .
1999-08-16 21:08:12 +00:00
Nik Clayton
537037f404 Make ${INSTALL_COMPRESSED} and ${INSTALL_ONLY_COMPRESSED} truly optional.
PR:             docs/12978
Submitted by:   John Baldwin <jobaldwi@vt.edu>
1999-08-05 20:22:49 +00:00
Nik Clayton
6dd20feada Change ${DOCBOOKCATALOG} to point at the master catalog for all the
DocBook DTDs, not just the 3.0 one.
1999-06-03 19:39:29 +00:00
Nik Clayton
ef198ce9f1 Be smarter about setting DOC_PREFIX to /usr/doc. Only do it if
/usr/doc/share/mk/docproj.docbook.mk exists.  Otherwise, warn the
user they need to set it, and exit.
1999-05-18 17:51:40 +00:00
Nik Clayton
33837abfa5 Added a validate target to check that the SGML markup is valid without
the overhead of running Jade.

Added an ${EXTRA_CATALOGS} variable if your document needs to be
processed with additional SGML catalogs (currently not used by anything,
but might be some day).

Switched the meaning of ${JADEFLAGS} and ${JADEOPTS} for consistency.  All
user-tweakable program options now match ${*FLAGS}.
1999-05-05 20:16:46 +00:00
Jun Kuriyama
8bdee18bd8 Add ${TIDYFLAGS} to use -raw option for building Japanese handbook. 1999-04-20 15:58:36 +00:00
Nik Clayton
ed34512f59 Includable Makefile, contains most of the logic for converting DocBook
into a variety of different formats.  Contains a lot of code that used
to be in doc/en/handbook/Makefile, the commit log for that file will
probably prove useful as well.
1999-04-14 22:13:59 +00:00