blob: e453830b91b4fd3093bdfc85bf1397e88385ff8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
<!-- $Id: docs-tutorial.xml,v 1.1 2003/09/22 16:34:23 tfox Exp $ -->
<chapter id="ch-tutorial">
<title>The Layout of a Tutorial</title>
<para>
In this chapter, you will find an example of a &PROJECT; documentation
parent file. This example is specific to the way the Docs Project uses
DocBook XML. The parent file contains the main structural format of the
book, entities that should be used for this book specifically and more.
</para>
<sect1 id="s1-tutorial-parent">
<title>The Parent File</title>
<para>
Below is a sample parent file:
</para>
<screen>
<computeroutput>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY RH "Red Hat"> <!--The generic term "Red Hat" -->
<!ENTITY FORMAL-RHI "&RH;, Inc."> <!--The generic term "Red Hat, Inc. -->
<!ENTITY PROJECT "Fedora project"> <!-- Set the project name -->
<!ENTITY NAME-TITLE "Fedora Project"> <!-- Set the project name, use for titles -->
<!ENTITY DISTRO "Fedora Core"> <!-- Set the distro name -->
<!ENTITY BOOKID "example-tutorial-0.1 (2003-07-07)"> <!-- change version of manual and date here -->
<!ENTITY LEGALNOTICE SYSTEM "../legalnotice.xml">
]>
<article id="example-tutorial" lang="en">
<articleinfo>
<title>Example Tutorial</title>
<copyright>
<year>2003</year>
<holder>&FORMAL-RHI;</holder>
<holder>Tammy Fox</holder>
</copyright>
<authorgroup>
<author>
<surname>Fox</surname>
<firstname>Tammy</firstname>
</author>
</authorgroup>
&LEGALNOTICE;
</articleinfo>
<section id="some-section">
<title>Some Section</title>
<para>
This is an example section. You can also use sect1, sect2, etc.
</para>
<warning>
<title>Warning</title>
<para>
Example of an admonition.
</para>
</warning>
</section>
</article>
</computeroutput>
</screen>
</sect1>
<sect1 id="s1-tutorial-license">
<title>Including the License Information</title>
<indexterm>
<primary>tutorial layout</primary>
<secondary>license</secondary>
</indexterm>
<para>
All &PROJECT; manuals <emphasis>must</emphasis> contain the file
<filename>legalnotice.xml</filename>. This file makes the license for
the file the GNU Free Documentation License (FDL).
</para>
<para>
The sample parent file shows how it is included.
</para>
</sect1>
</chapter>
|