Initial import from FreeBSD RELENG_4:
[dragonfly.git] / release / doc / README
1 -*- text -*-
2 RELNOTESng README
3 Bruce A. Mah <bmah@freebsd.org>
4 $FreeBSD: src/release/doc/README,v 1.7.2.3 2002/03/12 05:25:13 bmah Exp $
5
6 This is the top-level directory for RELNOTESng, a re-write of
7 FreeBSD's *.TXT documentation files.  They have been converted to
8 DocBook, and versions of the documents can be now be built for various
9 supported architectures.  The output files can be rendered in any
10 format supported by the FreeBSD Documentation Project (for example,
11 ASCII text, PDF, PS, HTML).
12
13 RELNOTESng requires that the FreeBSD doc/ sources are installed; it
14 leverages off of much of the DocProj build infrastructure, including
15 DocBook extensions and stylesheets.  If the doc/ sources are not
16 installed in /usr/src, their location should be specified with the
17 DOC_PREFIX Makefile variable.  RELNOTESng also requires the DocProj
18 build tools, which can easily be installed with the textproc/docproj
19 port in the Ports Collection.
20
21 Notable files and directories:
22
23 share/mk/doc.relnotes.mk
24         Common Makefile definitions for RELNOTESng.  These definitions
25         mostly accomodate the fact that we're building DocProj-like
26         documents outside the doc/ tree.
27 share/sgml/catalog
28         Main SGML catalog for all language-neutral (and default EN)
29         stylesheet and entity files.  Can be overridden if needed for
30         translations.
31 share/sgml/default.dsl
32         All documents build with this file as a stylesheet.  All it
33         does is to make it possible to use the document catalogs to
34         locate the "real" stylesheet by reference, rather than having
35         to specify it by pathname.
36 share/sgml/release.dsl
37         Language-neutral stylesheet.  This stylesheet supports
38         the arch= attribute on (all?) DocBook elements; elements with
39         an arch= attribute are only included in the output if their
40         value is equal to the value of the &arch; entity.  In the
41         future, arch= could be a list of possible &arch; entity values
42         that match, such as "i386,alpha".
43 share/sgml/release.ent
44         Release information.  Need to update the entry definitions in
45         this file when rolling new revisions; these should take effect
46         in all documents.
47
48 en_US.ISO8859-1/share/sgml/release.dsl
49         Language-dependent stylesheet for en, but also the default for
50         translations if they don't override the settings here.  This
51         stylesheet sets the email footer at the bottom of HTML pages,
52         as well as a few other parameters.  If necessary for
53         translations, this file can be overridden with
54         */share/sgml/release.dsl and */share/sgml/catalog.
55
56 */relnotes/common/
57         Directory for multi-architecture release notes files.
58 */relnotes/*/
59         Directories for architecture-specific release notes files.
60
61 */hardware/common/
62         Directory for multi-architecture hardware notes files.
63 */hardware/*/
64         Directories for architecture-specific hardware notes files.
65
66 */installation/common/
67         Directory for multi-architecture installation notes files.
68         Note that the FreeBSD DocProj build infrastructure does
69         not handle documents (or subdirectories) named "install" 
70         well, so we call our document "installation" and do
71         a hack when it gets installed into a distribution to fix
72         this up.
73 */installation/*/
74         Directories for architecture-specific release notes files.
75
76 */errata/
77         Directory for errata document.
78
79 */readme/
80         Directory for (introductory) document.
81
82 If building the release notes "standalone" (in other words, not part
83 of a release), it may be necessary (depending on the relative
84 locations of the checked-out src/ and doc/ directories) to set the
85 DOC_PREFIX Makefile variable to point to the top directory of the doc/
86 tree.  For example:
87
88          % make DOC_PREFIX=/usr/doc all
89
90 All definition of the "current" version of FreeBSD is contained in the
91 share/sgml/release.ent file; release engineers should peruse the
92 contents of this file carefully when doing version number bumps.
93
94 When creating content for the architecture-dependent files, authors
95 should use the arch= attribute to elements that are specific to a
96 particular machine architecture.  The value of this attribute should
97 be a single word that indicates for which architecture the current
98 element will be included.  For example:
99
100         <para arch="alpha">Alpha-specific text</para>
101
102 The currently-supported architectures are i386 and alpha.
103 An element may appear for multiple architectures by specifying
104 a comma-separated list of architectures (i.e. arch="alpha,ia64").
105
106 When creating a translation, make a new directory under this
107 directory with a language code (paralleling the DocProj directory
108 structure).  If necessary, new language-dependent HTML footers can be
109 generated by making a new language-dependent
110 ${LANG}/share/sgml/release.dsl, a ${LANG}/share/sgml/catalog that
111 points to it, and a new definition in the Makefiles that adds
112 ${LANG}/share/sgml/catalog to EXTRA_CATALOGS.  Except for the Makefile
113 changes, this is the same procedure that is used for creating a new
114 translation for DocProj files.
115
116 RELNOTESng is now enabled by default in the FreeBSD release-build
117 process.  It can be disabled by setting NODOC=YES when building a
118 release (note that this is the same variable that disables DocProj
119 documentation builds).
120
121 Release builders can set which language gets built with the 
122 RELNOTES_LANG variable; note that this is different from the 
123 DOC_LANG variable because (at least intially) most languages
124 will have localized DocProj files but not localized release notes.
125 The default language, if none is specified, is en_US.ISO8859-1.
126