Commit graph

104 commits

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