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

12.0 12.1 kea ken/TL2024 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 1d6fda1 was 1d6fda1, checked in by Bruce Dubbs <bdubbs@…>, 14 months ago

Update to sphinx-6.2.0 (Python module).

  • Property mode set to 100644
File size: 6.9 KB
RevLine 
[3d48ae4]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 " ">
[1d6fda1]9 <!ENTITY sphinx-md5sum "25ceafbd257b4640b87fc032e3155d4d">
[8f65da99]10 <!ENTITY sphinx-size "6.4 MB">
[1d6fda1]11 <!ENTITY sphinx-buildsize "26 MB (add 36 MB for tests)">
12 <!ENTITY sphinx-time "less than 0.1 SBU (0.9 SBU for tests)">
[3d48ae4]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
[9c87711]32 &lfs113_checked;
[3d48ae4]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"/>,
[0cf85fa]76 <phrase revision="sysv"><xref linkend="Jinja2"/>,</phrase>
[3d48ae4]77 <xref linkend="packaging"/>,
78 <xref linkend="pygments"/>,
79 <xref linkend="requests"/>,
80 <xref linkend="snowballstemmer"/>,
[036821b]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"/>
[3d48ae4]87 </para>
88
[74434cc]89 <bridgehead renderas="sect5">Optional (for tests)</bridgehead>
[3d48ae4]90 <para role="optional">
[74434cc]91 <xref linkend="cython"/>,
[72c62e4]92 <xref linkend="pytest"/>,
[1d6fda1]93 <xref linkend="texlive"/>,
94 <ulink url="https://pypi.org/project/filelock/">filelock</ulink>, and
[74434cc]95 <ulink url="https://pypi.org/project/html5lib/">html5lib</ulink>
[3d48ae4]96 </para>
97
98 </sect3>
99
100 <sect3 role="installation">
101 <title>Installation of Sphinx</title>
102
103 <para> Build the module: </para>
104
105<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
106
107 <para>
[74434cc]108 Now, as the <systemitem class="username">root</systemitem> user:
[3d48ae4]109 </para>
110
[74434cc]111<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user sphinx</userinput></screen>
112
[3d48ae4]113 <para>
[74434cc]114 Assuming <xref linkend="cython"/> and <xref linkend="pytest"/> are
115 installed, but the other optional dependency is not, the installation
116 can be tested with the following commands:
[3d48ae4]117 </para>
118
[74434cc]119<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
120source testenv/bin/activate &amp;&amp;
[1d6fda1]121pip3 install html5lib filelock &amp;&amp;
[74434cc]122python3 /usr/bin/pytest<!-- no && because of a possible error -->
123deactivate</userinput></screen>
[3d48ae4]124
[ab96df2]125 <para>
126 One test, <command>tests/test_config.py::test_needs_sphinx</command>
127 is known to fail.
128 </para>
129
[3d48ae4]130 </sect3>
131
132 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
133 href="../../../xincludes/pip3-cmd-explain.xml"/>
134
135 <sect3 role="content">
136 <title>Contents</title>
137
138 <segmentedlist>
139 <segtitle>Installed Programs</segtitle>
140 <segtitle>Installed Libraries</segtitle>
141 <segtitle>Installed Directories</segtitle>
142
143 <seglistitem>
144 <seg>
[2a0f15bc]145 sphinx-apidoc, sphinx-autogen, sphinx-build, and sphinx-quickstart
[3d48ae4]146 </seg>
147 <seg>None</seg>
148 <seg>
[2a0f15bc]149 /usr/lib/python&python3-majorver;/site-packages/sphinx and
150 /usr/lib/python&python3-majorver;/site-packages/sphinx-&sphinx-version;.dist-info
[3d48ae4]151 </seg>
152 </seglistitem>
153 </segmentedlist>
[2a0f15bc]154
[3d48ae4]155 <variablelist>
156 <bridgehead renderas="sect5">Short Descriptions</bridgehead>
157 <?dbfo list-presentation="list"?>
158 <?dbhtml list-presentation="table"?>
159
[2a0f15bc]160 <varlistentry id="sphinx-apidoc">
161 <term><command>sphinx-apidoc</command></term>
162 <listitem>
163 <para>
164 creates an reST file from python modules and packages
165 </para>
166 <indexterm zone="sphinx sphinx-apidoc">
167 <primary sortas="b-sphinx-apidoc">sphinx-apidoc</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="sphinx-autogen">
173 <term><command>sphinx-autogen</command></term>
[3d48ae4]174 <listitem>
175 <para>
[2a0f15bc]176 generates ReStructuredText from special directives contained
177 in given input files
[3d48ae4]178 </para>
[2a0f15bc]179 <indexterm zone="sphinx sphinx-autogen">
180 <primary sortas="b-sphinx-autogen">sphinx-autogen</primary>
[3d48ae4]181 </indexterm>
182 </listitem>
183 </varlistentry>
184
[2a0f15bc]185 <varlistentry id="sphinx-build">
186 <term><command>sphinx-build</command></term>
[3d48ae4]187 <listitem>
188 <para>
[2a0f15bc]189 generates documentation in various formats from ReStructuredText
190 source files
[3d48ae4]191 </para>
[2a0f15bc]192 <indexterm zone="sphinx sphinx-build">
193 <primary sortas="b-sphinx-build">sphinx-build</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="sphinx-quickstart">
199 <term><command>sphinx-quickstart</command></term>
200 <listitem>
201 <para>
202 generates required files for a sphinx project
203 </para>
204 <indexterm zone="sphinx sphinx-quickstart">
205 <primary sortas="b-sphinx-quickstart">sphinx-quickstart</primary>
[3d48ae4]206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 </variablelist>
[2a0f15bc]211
[3d48ae4]212 </sect3>
213
214 </sect2>
Note: See TracBrowser for help on using the repository browser.