~ubuntu-branches/ubuntu/saucy/dhelp/saucy-proposed

« back to all changes in this revision

Viewing changes to tmp/dhelp-ruby/debian/dhelp/usr/share/doc/dhelp/dhelp.html

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-06-19 01:25:07 UTC
  • Revision ID: james.westby@ubuntu.com-20080619012507-adt75omul1shucde
Tags: 0.6.9ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Recommends: firefox-3.0.
  - Exit zero if the bdb module is not available; this usually indicates
    that dhelp is not configured yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<HTML>
2
 
<TITLE>dhelp</TITLE>
3
 
<BODY>
4
 
<IMG SRC="debian.jpg" ALT="Debian GNU/Linux"><p>
5
 
<H1>dhelp</H1>
6
 
 
7
 
<H2>What's dhelp?</H2>
8
 
dhelp is an online help system for Debian GNU/Linux. A Debian package 
9
 
can register its HTML documents and dhelp builds an index of
10
 
all documents.
11
 
 
12
 
The user doesn't need a WWW server to browse the HTML tree.
13
 
 
14
 
<H2>How to use dhelp</H2>
15
 
If you have installed a WWW server on your system simply browse
16
 
<BLOCKQUOTE><TT><A HREF="http://localhost/doc/HTML/index.html">
17
 
http://localhost/doc/HTML/index.html</A></TT></BLOCKQUOTE><P>
18
 
 
19
 
If you haven't installed a WWW server use the dhelp command:
20
 
 
21
 
<BLOCKQUOTE>$ dhelp</BLOCKQUOTE>
22
 
 
23
 
<H2>The .dhelp file</H2>
24
 
 
25
 
Programs supporting dhelp have to install a <tt>.dhelp</tt> file
26
 
in every directory under <tt>/usr/share/doc</tt>. For every HTML file that 
27
 
should appear in the dhelp index the <tt>.dhelp</tt> file have to contain
28
 
the following section:<P>
29
 
 
30
 
<DL>
31
 
<DT><TT>&lt;item&gt;</TT>
32
 
<DT><TT>&lt;directory&gt;</TT>
33
 
<DD>Defines in which section of the index the document should be linked.
34
 
    I suggest that you use the same names like in <em>Section:</em>
35
 
    in <tt>control</tt>. For example for a game you would use
36
 
    <tt>games</tt>. A German document should linked to <tt>de/games</tt>
37
 
    and so on.
38
 
    You can find all supported sections in 
39
 
    <tt><A HREF=".dhelp">.dhelp</A></tt>. You can create additional
40
 
    sections if necessary.
41
 
<DT><TT>&lt;dirtitle&gt;</TT>
42
 
<DD>Defines the title of a new section. 
43
 
<DT><TT>&lt;linkname&gt;</TT>
44
 
<DD>This short text appears as link text in the index. This
45
 
    is typical the filename without the <tt>.html suffix</tt>.
46
 
<DT><TT>&lt;filename&gt;</TT>
47
 
<DD>The filename of the HTML file with a path relative to the
48
 
    <tt>.dhelp</tt> file. If your document is called
49
 
    <tt>/usr/share/doc/dhelp/test.html</tt> and the <tt>.dhelp</tt>
50
 
    is installed in <tt>/usr/share/doc/dhelp</tt> you must use
51
 
    <tt>test.html</tt>.
52
 
<DT><PRE>
53
 
&lt;description&gt;
54
 
...
55
 
&lt;/description&gt;
56
 
</PRE>
57
 
<DD>
58
 
A long description of the content of the document (optional).
59
 
<DT><TT>&lt;/item&gt;</TT>
60
 
</DL><P>
61
 
 
62
 
You can have only one tag per line! Something like the following will
63
 
not work:<P>
64
 
 
65
 
<PRE>
66
 
&lt;item&gt;&lt;directory&gt;de/foo
67
 
  &lt;dirtitle&gt;The foo section
68
 
  &lt;linkname&gt;foo
69
 
 &lt;filename&gt;foo.html
70
 
&lt;descrip&gt;foo foo foo&lt;/descrip&gt;&lt;/item&gt;
71
 
</PRE>
72
 
 
73
 
You have to use this:<P>
74
 
 
75
 
<PRE>
76
 
&lt;item&gt;
77
 
&lt;directory&gt;de/foo
78
 
&lt;dirtitle&gt;The foo section
79
 
&lt;linkname&gt;foo
80
 
&lt;filename&gt;foo.html
81
 
&lt;descrip&gt;
82
 
foo foo foo
83
 
&lt;/descrip&gt;
84
 
&lt;/item&gt;
85
 
</PRE>
86
 
 
87
 
You can have several &lt;item&gt; sections in one <tt>.dhelp</tt>
88
 
file. 
89
 
 
90
 
 
91
 
<H2>Add a .dhelp file to the index</H2>
92
 
 
93
 
To add a <tt>.dhelp</tt> file to the document index you have
94
 
to call <tt>dhelp_parse</tt>:<P>
95
 
 
96
 
<BLOCKQUOTE># dhelp_parse -a /usr/share/doc/directory</BLOCKQUOTE>
97
 
 
98
 
I would suggest to add the following to your package <tt>postinst</tt>
99
 
script:<P>
100
 
 
101
 
<BLOCKQUOTE><PRE>
102
 
if [ -f /usr/sbin/dhelp_parse ]; then
103
 
  /usr/sbin/dhelp_parse -a /usr/share/doc/directory
104
 
fi
105
 
</PRE></BLOCKQUOTE><P>
106
 
 
107
 
In <tt>prerm</tt> you should use:<P>
108
 
 
109
 
<BLOCKQUOTE><PRE>
110
 
if [ -f /usr/sbin/dhelp_parse ]; then
111
 
  /usr/sbin/dhelp_parse -d /usr/share/doc/directory
112
 
fi
113
 
</PRE></BLOCKQUOTE><P>
114
 
 
115
 
<!--
116
 
If your package conforms to the latest policy, the <tt>postinst</tt>
117
 
script should look like this:<P>
118
 
 
119
 
<BLOCKQUOTE><PRE>
120
 
if [ -f /usr/sbin/dhelp_parse ]; then
121
 
  /usr/sbin/dhelp_parse -a /usr/share/doc/directory
122
 
fi
123
 
 
124
 
if [ -f /usr/sbin/dhelp_parse_fsstnd ]; then
125
 
  /usr/sbin/dhelp_parse_fsstnd -a /usr/doc/directory
126
 
fi
127
 
</PRE></BLOCKQUOTE><P>
128
 
 
129
 
In <tt>prerm</tt> you should use:<P>
130
 
 
131
 
<BLOCKQUOTE><PRE>
132
 
if [ -f /usr/sbin/dhelp_parse ]; then
133
 
  /usr/sbin/dhelp_parse -d /usr/share/doc/directory
134
 
fi
135
 
 
136
 
if [ -f /usr/sbin/dhelp_parse_fsstnd ]; then
137
 
  /usr/sbin/dhelp_parse_fsstnd -d /usr/doc/directory
138
 
fi
139
 
</PRE></BLOCKQUOTE><P>
140
 
-->
141
 
 
142
 
 
143
 
<H2>Scripts for .dhelp file</H2>
144
 
 
145
 
<H3>sgml2dhelp</H3>
146
 
 
147
 
If the HTML files were produced by the sgml-tools (linuxdoc-sgml)
148
 
you can use the script <tt><a href="sgml2dhelp.pl">sgml2dhelp.pl</a></tt>.
149
 
This script produces a <tt>.dhelp</tt>, a <tt>.dwww-index</tt>,
150
 
and a <tt>index.html</tt> file.<P>
151
 
 
152
 
Run this script in every directory containing HTML files. 
153
 
You have to call the script with to options:<P>
154
 
 
155
 
<BLOCKQUOTE>
156
 
<b>sgml2dhelp</b> <i>&lt;dhelp section&gt; &lt;dwww section&gt;</i> 
157
 
</BLOCKQUOTE>
158
 
 
159
 
If your documents should go in the German HOWTO section for example, you
160
 
have to enter:<P>
161
 
 
162
 
<BLOCKQUOTE><TT># dhelp.build de/HOWTO general</TT></BLOCKQUOTE> <P>
163
 
 
164
 
<H2>What can I do for dhelp?</H2>
165
 
 
166
 
If you like dhelp please ask maintainers of Debian packages including
167
 
HTML documentation to add dhelp support.<P>
168
 
 
169
 
If you have any comments or problems please feel free to send
170
 
an email to the dhelp package maintainer: 
171
 
<A HREF="mailto:dhelp@packages.debian.org">dhelp@packages.debian.org</A>
172
 
 
173
 
</BODY>
174
 
</HTML>