source: general/prog/python-modules/sphinx.xml@ b112f043

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since b112f043 was b112f043, checked in by Pierre Labastie <pierre.labastie@…>, 15 months ago

Add figures and a few fixes for new python modules

  • Property mode set to 100644
File size: 6.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 sphinx-download-http "https://github.com/sphinx-doc/sphinx/archive/v&sphinx-version;/sphinx-&sphinx-version;.tar.gz">
8 <!ENTITY sphinx-download-ftp " ">
9 <!ENTITY sphinx-md5sum "18b07621d19d4b2cffd58d7a6ac5bed3">
10 <!ENTITY sphinx-size "6.4 MB">
11 <!ENTITY sphinx-buildsize "43 MB (add 35 MB for tests)">
12 <!ENTITY sphinx-time "less than 0.1 SBU (1.1 SBU for tests)">
13]>
14
15 <sect2 id="sphinx" xreflabel="sphinx-&sphinx-version;">
16
17 <title>Sphinx-&sphinx-version;</title>
18
19 <indexterm zone="sphinx">
20 <primary sortas="a-sphinx">sphinx</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Sphinx Module</title>
25
26 <para>
27 The <application>Sphinx</application> package is a set of tools
28 for translating some structured text formats into pretty documentation
29 in various formats.
30 </para>
31
32 &lfs112_checked;
33
34 <bridgehead renderas="sect4">Package Information</bridgehead>
35 <itemizedlist spacing="compact">
36 <listitem>
37 <para>
38 Download (HTTP): <ulink url="&sphinx-download-http;"/>
39 </para>
40 </listitem>
41 <listitem>
42 <para>
43 Download (FTP): <ulink url="&sphinx-download-ftp;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download MD5 sum: &sphinx-md5sum;
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download size: &sphinx-size;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Estimated disk space required: &sphinx-buildsize;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated build time: &sphinx-time;
64 </para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect4">Sphinx Dependencies</bridgehead>
69
70 <bridgehead renderas="sect5">Required</bridgehead>
71 <para role="required">
72 <xref linkend="alabaster"/>,
73 <xref linkend="babel"/>,
74 <xref linkend="docutils"/>,
75 <xref linkend="imagesize"/>,
76 <phrase revision="sysv"><xref linkend="Jinja2"/>,</phrase>
77 <xref linkend="packaging"/>,
78 <xref linkend="pygments"/>,
79 <xref linkend="requests"/>,
80 <xref linkend="snowballstemmer"/>,
81 <xref linkend="sc-applehelp"/>,
82 <xref linkend="sc-devhelp"/>,
83 <xref linkend="sc-htmlhelp"/>,
84 <xref linkend="sc-jsmath"/>,
85 <xref linkend="sc-qthelp"/>, and
86 <xref linkend="sc-serializinghtml"/>
87 </para>
88
89 <bridgehead renderas="sect5">Optional (for tests)</bridgehead>
90 <para role="optional">
91 <xref linkend="cython"/>,
92 <xref linkend="pytest"/>,
93 <xref linkend="texlive"/>, and
94 <ulink url="https://pypi.org/project/html5lib/">html5lib</ulink>
95 </para>
96
97 </sect3>
98
99 <sect3 role="installation">
100 <title>Installation of Sphinx</title>
101
102 <para> Build the module: </para>
103
104<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
105
106 <para>
107 Now, as the <systemitem class="username">root</systemitem> user:
108 </para>
109
110<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user sphinx</userinput></screen>
111
112 <para>
113 Assuming <xref linkend="cython"/> and <xref linkend="pytest"/> are
114 installed, but the other optional dependency is not, the installation
115 can be tested with the following commands:
116 </para>
117
118<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
119source testenv/bin/activate &amp;&amp;
120pip3 install html5lib &amp;&amp;
121python3 /usr/bin/pytest<!-- no && because of a possible error -->
122deactivate</userinput></screen>
123
124 </sect3>
125
126 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
127 href="../../../xincludes/pip3-cmd-explain.xml"/>
128
129 <sect3 role="content">
130 <title>Contents</title>
131
132 <segmentedlist>
133 <segtitle>Installed Programs</segtitle>
134 <segtitle>Installed Libraries</segtitle>
135 <segtitle>Installed Directories</segtitle>
136
137 <seglistitem>
138 <seg>
139 sphinx-apidoc, sphinx-autogen, sphinx-build, and sphinx-quickstart
140 </seg>
141 <seg>None</seg>
142 <seg>
143 /usr/lib/python&python3-majorver;/site-packages/sphinx and
144 /usr/lib/python&python3-majorver;/site-packages/sphinx-&sphinx-version;.dist-info
145 </seg>
146 </seglistitem>
147 </segmentedlist>
148
149 <variablelist>
150 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
151 <?dbfo list-presentation="list"?>
152 <?dbhtml list-presentation="table"?>
153
154 <varlistentry id="sphinx-apidoc">
155 <term><command>sphinx-apidoc</command></term>
156 <listitem>
157 <para>
158 creates an reST file from python modules and packages
159 </para>
160 <indexterm zone="sphinx sphinx-apidoc">
161 <primary sortas="b-sphinx-apidoc">sphinx-apidoc</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="sphinx-autogen">
167 <term><command>sphinx-autogen</command></term>
168 <listitem>
169 <para>
170 generates ReStructuredText from special directives contained
171 in given input files
172 </para>
173 <indexterm zone="sphinx sphinx-autogen">
174 <primary sortas="b-sphinx-autogen">sphinx-autogen</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="sphinx-build">
180 <term><command>sphinx-build</command></term>
181 <listitem>
182 <para>
183 generates documentation in various formats from ReStructuredText
184 source files
185 </para>
186 <indexterm zone="sphinx sphinx-build">
187 <primary sortas="b-sphinx-build">sphinx-build</primary>
188 </indexterm>
189 </listitem>
190 </varlistentry>
191
192 <varlistentry id="sphinx-quickstart">
193 <term><command>sphinx-quickstart</command></term>
194 <listitem>
195 <para>
196 generates required files for a sphinx project
197 </para>
198 <indexterm zone="sphinx sphinx-quickstart">
199 <primary sortas="b-sphinx-quickstart">sphinx-quickstart</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 </variablelist>
205
206 </sect3>
207
208 </sect2>
Note: See TracBrowser for help on using the repository browser.