File: Draft.xml

package info (click to toggle)
publican 2.1-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,108 kB
  • ctags: 195
  • sloc: xml: 6,511; perl: 6,356; makefile: 30
file content (110 lines) | stat: -rw-r--r-- 4,924 bytes parent folder | download
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
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "Users_Guide.ent">
%BOOK_ENTITIES;
]>
<section id="sect-Users_Guide-Pre_release_software_and_draft_documentation">
	<title>Pre-release software and draft documentation</title>
	 <para>
		Completed documentation for pre-release software is not the same thing as draft documentation.
	</para>
	 <para>
		Drafts are unfinished versions of a book or article, and their unfinished state is unrelated to the status of the software they document.
	</para>
	 <para>
		In both circumstances, however, it is important to make the status of the software, documentation or both clear to users, developers, readers and reviewers.
	</para>
	 <section id="sect-Users_Guide-Pre_release_software_and_draft_documentation-Denoting_pre_release_software">
		<title>Denoting pre-release software</title>
		 <para>
			Documentation for pre-release software, especially pre-release software being distributed to testers, customers and partners, should carry a clear mark denoting the beta-status of the software.
		</para>
		 <para>
			To create that mark do the following:
		</para>
		 <procedure>
			<step>
				<para>
					Add the software&apos;s pre-release version number, or equivalent state information, to the subtitle in your <filename>Book_Info.xml</filename> file. Place this additional text in <sgmltag>&lt;remark&gt;</sgmltag> tags. For example:
				</para>
				 
<programlisting language="XML">&lt;subtitle&gt;Using Red Hat Enterprise Warp Drive&lt;remark&gt; Version 1.1, Beta 2&lt;/remark&gt;&lt;/subtitle&gt;

</programlisting>

			</step>
			 <step>
				<para>
					add <varname>show_remarks</varname> to the <filename>publican.cfg</filename> file and set it to &apos;1&apos;:
				</para>
				 
<programlisting>show_remarks: 1

</programlisting>

			</step>

		</procedure>
		
		 <para>
			When you build your book with this <sgmltag>&lt;remark&gt;</sgmltag> tag and the <varname>show_remarks</varname> setting in place, the pre-release nature of the software is displayed clearly and unmistakably. PDF builds display the remark on their cover and title pages. HTML builds (both single-page HTML and multiple-page HTML) display the remark near the beginning of <filename>index.html</filename>.
		</para>
		 <para>
			Because this approach makes no changes to the information in <filename>Book_Info.xml</filename> used to generate RPMs, it also ensures there is no ambiguity in the RPM subsystem&apos;s operation.
		</para>
		 <important>
			<title>Important</title>
			 <para>
				It is the writer&apos;s responsibility to remove the <sgmltag>&lt;remark&gt;</sgmltag> tag and its contents and remove or turn off <varname>show_remarks</varname> when documentation is updated for use with the release version of the software.
			</para>

		</important>

	</section>
	
	 <section id="sect-Users_Guide-Pre_release_software_and_draft_documentation-Denoting_draft_documentation">
		<title>Denoting draft documentation</title>
		 <para>
			Unfinished documentation made available to others for review should be labeled clearly as such.
		</para>
		 <procedure>
			<step>
				<para>
					To add the draft watermark to your documentation add the <userinput>status=&quot;draft&quot;</userinput> attribute to the <sgmltag>&lt;article&gt;</sgmltag>, <sgmltag>&lt;book&gt;</sgmltag> or <sgmltag>&lt;set&gt;</sgmltag> tag in your document&apos;s root node. For example:
				</para>
				 
<programlisting language="XML">&lt;book status=&quot;draft&quot;&gt;

</programlisting>

			</step>

		</procedure>
		
		 <para>
			By default, your root node is the <sgmltag>&lt;book&gt;</sgmltag> tag in your <filename><replaceable>Doc_Name</replaceable>.xml</filename> file.
		</para>
		 <para>
			If you are working on an article or set, the root node is the <sgmltag>&lt;article&gt;</sgmltag> or <sgmltag>&lt;set&gt;</sgmltag> tag in <filename><replaceable>Doc_Name</replaceable>.xml</filename>.
		</para>
		 <para>
			Adding the <userinput>status=&quot;draft&quot;</userinput> attribute causes each page of the document to show the draft watermark. This is by design.
		</para>
		 <para>
			Even if you change only a portion of a work before sending it out for review, marking every page as draft will encourage reviewers to report errors or typos they spot in passing. It will also ensure non-reviewers who encounter the work do not mistake a draft for a finished version.
		</para>

	</section>
	
	 <section id="sect-Users_Guide-Pre_release_software_and_draft_documentation-Denoting_draft_documentation_of_pre_release_software">
		<title>Denoting draft documentation of pre-release software</title>
		 <para>
			To denote unfinished documentation of pre-release software properly, do both previously noted procedures.
		</para>

	</section>
	

</section>