Commit graph

139 commits

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