source: general/genutils/gtk-doc.xml

trunk
Last change on this file was 6306f35, checked in by Douglas R. Reno <renodr@…>, 7 weeks ago

Update to gtk-doc-1.34.0.

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY gtk-doc-download-http "&gnome-download-http;/gtk-doc/&gtk-doc-major;/gtk-doc-&gtk-doc-version;.tar.xz">
8 <!ENTITY gtk-doc-download-ftp " ">
9 <!ENTITY gtk-doc-md5sum "f0e7385ba25eddb6ce0953e8cf63d1bf">
10 <!ENTITY gtk-doc-size "484 KB">
11 <!ENTITY gtk-doc-buildsize "14 MB (with tests)">
12 <!ENTITY gtk-doc-time "0.2 SBU (with tests)">
13]>
14
15<sect1 id="gtk-doc" xreflabel="GTK-Doc-&gtk-doc-version;">
16 <?dbhtml filename="gtk-doc.html"?>
17
18
19 <title>GTK-Doc-&gtk-doc-version;</title>
20
21 <indexterm zone="gtk-doc">
22 <primary sortas="a-GTK-Doc">GTK-Doc</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to GTK-Doc</title>
27
28 <para>
29 The <application>GTK-Doc</application> package contains a code
30 documenter. This is useful for extracting specially formatted comments
31 from the code to create API documentation. This package is
32 <emphasis>optional</emphasis>; if it is not installed, packages will
33 not build the documentation. This does not mean that you will not have
34 any documentation. If <application>GTK-Doc</application> is not
35 available, the install process will copy any pre-built documentation
36 to your system.
37 </para>
38
39 &lfs121_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&gtk-doc-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&gtk-doc-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &gtk-doc-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &gtk-doc-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &gtk-doc-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &gtk-doc-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74<!--
75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Required patch to allow building <xref linkend="glib2"/>
80 documentation:
81 <ulink url="&patch-root;/gtk-doc-&gtk-doc-version;-glib2_fixes-1.patch"/>
82 </para>
83 </listitem>
84 </itemizedlist>
85-->
86 <bridgehead renderas="sect3">GTK-Doc Dependencies</bridgehead>
87
88 <bridgehead renderas="sect4">Required</bridgehead>
89 <para role="required">
90 <xref linkend="DocBook"/>,
91 <xref linkend="docbook-xsl"/>,
92 <xref linkend="itstool"/>, and
93 <xref linkend="libxslt"/>
94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
98 <xref role="runtime" linkend="pygments"/> at run time
99 </para>
100
101 <bridgehead renderas="sect4">Optional</bridgehead>
102 <para role="optional">
103 For tests:
104 <ulink url="https://sourceforge.net/projects/dblatex/">dblatex</ulink> or
105 <xref linkend="fop"/> (XML PDF support),
106 <xref linkend="glib2"/>,
107 <xref linkend="which"/>, and
108 Python modules
109 <xref linkend="lxml"/>,
110 <!--<ulink url="https://anytree.readthedocs.io/en/latest/">anytree</ulink>,-->
111 <ulink url="https://pypi.org/project/parameterized/">parameterized</ulink>,
112 and <ulink url="&gnome-download-http;/yelp-tools">yelp-tools</ulink>
113 </para>
114
115 <note>
116 <para>
117 The optional python modules above can be easily installed with
118 the <command>pip3</command> command.
119 </para>
120 </note>
121
122
123 </sect2>
124
125 <sect2 role="installation">
126 <title>Installation of GTK-Doc</title>
127
128 <para>
129 Install <application>GTK-Doc</application> by running
130 the following commands:
131 </para>
132
133<screen><userinput>mkdir -p build &amp;&amp;
134cd build &amp;&amp;
135
136meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
137ninja</userinput></screen>
138
139 <para>
140 The test suite will hang if the package (or a previous version)
141 is not already installed.
142 </para>
143
144 <para>
145 Now, as the <systemitem class="username">root</systemitem> user:
146 </para>
147
148<screen role="root"><userinput>ninja install</userinput></screen>
149
150 <para>
151 To test the results, issue: <command>ninja test</command>.
152 Some tests will fail depending on optionally installed packages.
153 </para>
154
155 </sect2>
156
157 <sect2 role="content">
158 <title>Contents</title>
159
160 <segmentedlist>
161 <segtitle>Installed Programs</segtitle>
162 <segtitle>Installed Libraries</segtitle>
163 <segtitle>Installed Directories</segtitle>
164
165 <seglistitem>
166 <seg>
167 gtkdocize,
168 gtkdoc-check,
169 gtkdoc-depscan,
170 gtkdoc-fixxref,
171 gtkdoc-mkdb,
172 gtkdoc-mkhtml,
173 gtkdoc-mkhtml2,
174 gtkdoc-mkman,
175 gtkdoc-mkpdf,
176 gtkdoc-rebase,
177 gtkdoc-scan, and
178 gtkdoc-scangobj
179 </seg>
180
181 <seg>None</seg>
182
183 <seg>
184 /usr/share/gtk-doc and
185 /usr/share/cmake/GtkDoc
186 </seg>
187 </seglistitem>
188 </segmentedlist>
189
190 <variablelist>
191 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
192 <?dbfo list-presentation="list"?>
193 <?dbhtml list-presentation="table"?>
194
195 <varlistentry id="gtkdoc">
196 <term><command>gtkdoc*</command></term>
197 <listitem>
198 <para>
199 these are all shell, or
200 <application>Python</application> scripts used by
201 package <filename>Makefile</filename> scripts to generate
202 documentation for the package being built
203 </para>
204 <indexterm zone="gtk-doc gtkdoc">
205 <primary sortas="b-gtkdoc*">gtkdoc*</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 </variablelist>
211
212 </sect2>
213
214</sect1>
Note: See TracBrowser for help on using the repository browser.