source: general/prog/python-modules/gi-docgen.xml@ 0977d61

ken/TL2024 lazarus trunk
Last change on this file since 0977d61 was 0977d61, checked in by Xi Ruoyao <xry111@…>, 3 months ago

gi-docgen: Silence graphviz warnings

  • Property mode set to 100644
File size: 5.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect2 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 gi-docgen-download-http "https://files.pythonhosted.org/packages/source/g/gi-docgen/gi-docgen-&gi-docgen-version;.tar.gz">
8 <!ENTITY gi-docgen-download-ftp " ">
9 <!ENTITY gi-docgen-md5sum "&gi-docgen-md5sum;">
10 <!ENTITY gi-docgen-size "2.4 MB">
11 <!ENTITY gi-docgen-buildsize "18 MB (with tests)">
12 <!ENTITY gi-docgen-time "less than 0.1 SBU (with tests)">
13]>
14
15 <sect2 id="gi-docgen" xreflabel="Gi-DocGen-&gi-docgen-version;">
16
17 <title>Gi-DocGen-&gi-docgen-version;</title>
18
19 <indexterm zone="gi-docgen">
20 <primary sortas="a-gi-docgen">gi-docgen</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Gi-DocGen Module</title>
25
26 <para>
27 <application>Gi-DocGen</application> is a document generator for
28 GObject-based libraries. GObject is the base type system of the GNOME
29 project. GI-Docgen reuses the introspection data generated by
30 GObject-based libraries to generate the API reference of these
31 libraries, as well as other ancillary documentation.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect4">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&gi-docgen-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&gi-docgen-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &gi-docgen-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &gi-docgen-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &gi-docgen-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &gi-docgen-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect4">Gi-DocGen Dependencies</bridgehead>
71
72 <bridgehead renderas="sect5">Required</bridgehead>
73 <para role="required">
74 <xref linkend="markdown"/>,
75 <xref linkend="packaging"/>,
76 <xref linkend="pygments"/>,
77 and <xref linkend="typogrify"/>
78 </para>
79
80 <bridgehead renderas="sect5">Optional</bridgehead>
81 <para role="optional">
82 <xref role='runtime' linkend='graphviz'/> (runtime, for visualizing
83 class hierarchy graphs) and
84 <xref linkend="pytest"/> (for testing)
85 </para>
86
87 </sect3>
88
89 <sect3 role="installation">
90 <title>Installation of gi-docgen</title>
91
92 <!-- https://gitlab.gnome.org/GNOME/gi-docgen/-/issues/188 -->
93 <para>
94 Silence a warning from the Graphviz <command>dot</command> utility
95 which will cause documentation of various packages fail to build
96 if Graphviz is installed but built without Pango, and
97 <command>gi-docgen</command> is invoked with the
98 <option>--fatal-warnings</option> option:
99 </para>
100
101 <screen><userinput>sed 's/"dot", /&amp;"-q", /' -i gidocgen/utils.py</userinput></screen>
102
103 <para> Build the module: </para>
104
105&build-wheel;
106
107 <para>
108 Now, as the <systemitem class="username">root</systemitem> user:
109 </para>
110
111<screen role="root"><userinput>&install-wheel; gi-docgen</userinput></screen>
112
113 <para>
114 To test the installation, issue <command>pytest</command>.
115 </para>
116
117 </sect3>
118
119 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
120 href="../../../xincludes/pip3-cmd-explain.xml"/>
121
122 <sect3 role="content">
123 <title>Contents</title>
124
125 <segmentedlist>
126 <segtitle>Installed Programs</segtitle>
127 <segtitle>Installed Libraries</segtitle>
128 <segtitle>Installed Directories</segtitle>
129
130 <seglistitem>
131 <seg>gi-docgen</seg>
132 <seg>None</seg>
133 <seg>
134 /usr/lib/python&python3-majorver;/site-packages/gidocgen and
135 /usr/lib/python&python3-majorver;/site-packages/gi_docgen-&gi-docgen-version;.dist-info
136 </seg>
137 </seglistitem>
138 </segmentedlist>
139
140 <variablelist>
141 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
142 <?dbfo list-presentation="list"?>
143 <?dbhtml list-presentation="table"?>
144
145 <varlistentry id="gi-docgen-prog">
146 <term><command>gi-docgen</command></term>
147 <listitem>
148 <para>
149 manages documentation for libgobject based libraries.
150 </para>
151 <indexterm zone="gi-docgen gi-docgen-prog">
152 <primary sortas="b-gi-docgen">gi-docgen</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 </variablelist>
158
159 </sect3>
160
161 </sect2>
Note: See TracBrowser for help on using the repository browser.