Commit graph

151 commits

Author SHA1 Message Date
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