source: general/prog/python-modules/sphinx_rtd_theme.xml@ 72c62e4

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

Add figures for python modules

Also fix various problems with already included modules (missing
short descriptions, etc)

  • Property mode set to 100644
File size: 4.8 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_rtd_theme-download-http "https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-&sphinx_rtd_theme-version;.tar.gz">
8 <!ENTITY sphinx_rtd_theme-download-ftp " ">
9 <!ENTITY sphinx_rtd_theme-md5sum "fdfc7d2e102cb96eca0f6155dde7403e">
10 <!ENTITY sphinx_rtd_theme-size "2.7 MB">
11 <!ENTITY sphinx_rtd_theme-buildsize "14 MB (add 25 MB for tests)">
12 <!ENTITY sphinx_rtd_theme-time "less than 0.1 SBU (with tests)">
13]>
14
15 <sect2 id="sphinx_rtd_theme" xreflabel="sphinx_rtd_theme-&sphinx_rtd_theme-version;">
16
17 <title>Sphinx_rtd_theme-&sphinx_rtd_theme-version;</title>
18
19 <indexterm zone="sphinx_rtd_theme">
20 <primary sortas="a-sphinx_rtd_theme">sphinx_rtd_theme</primary>
21 </indexterm>
22
23 <sect3 role="package">
24 <title>Introduction to Sphinx_rtd_theme Module</title>
25
26 <para>
27 The <application>sphinx_rtd_theme</application> module is a Sphinx
28 theme designed to provide a great reader experience for documentation
29 users on both desktop and mobile devices. This theme is used primarily
30 on Read the Docs but can work with any Sphinx project.
31 </para>
32
33 &lfs112_checked;
34
35 <bridgehead renderas="sect4">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&sphinx_rtd_theme-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&sphinx_rtd_theme-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &sphinx_rtd_theme-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &sphinx_rtd_theme-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &sphinx_rtd_theme-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &sphinx_rtd_theme-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect4">Sphinx_rtd_theme Dependencies</bridgehead>
70
71 <bridgehead renderas="sect5">Required</bridgehead>
72 <para role="required">
73 <xref linkend="sphinx"/>
74 </para>
75
76 <bridgehead renderas="sect5">Optional (for tests)</bridgehead>
77 <para role="optional">
78 <xref linkend="pytest"/> and
79 <ulink url="https://pypi.org/project/readthedocs-sphinx-ext">
80 readthedocs-sphinx-ext
81 </ulink>
82 </para>
83
84 </sect3>
85
86 <sect3 role="installation">
87 <title>Installation of Sphinx_rtd_theme</title>
88<!-- Upstream tentative fix: not completely tested, it seems
89 but otherwise we fall into dependency hell -->
90 <para>
91 Fix a wrong version for a dependency list:
92 </para>
93
94<screen><userinput>sed -i s/0.18/0.20/ setup.py</userinput></screen>
95
96 <para>
97 Build the module:
98 </para>
99
100<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen>
101
102 <para>
103 Now, as the <systemitem class="username">root</systemitem> user:
104 </para>
105
106<screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user sphinx_rtd_theme</userinput></screen>
107
108 <para>
109 Assuming <xref linkend="pytest"/> is
110 installed, but the other optional dependency is not, the installation
111 can be tested with the following commands:
112 </para>
113
114<screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &amp;&amp;
115source testenv/bin/activate &amp;&amp;
116pip3 install readthedocs-sphinx-ext &amp;&amp;
117python3 /usr/bin/pytest<!-- no && because of a possible error -->
118deactivate</userinput></screen>
119
120 </sect3>
121
122 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
123 href="../../../xincludes/pip3-cmd-explain.xml"/>
124
125 <sect3 role="content">
126 <title>Contents</title>
127
128 <segmentedlist>
129 <segtitle>Installed Programs</segtitle>
130 <segtitle>Installed Libraries</segtitle>
131 <segtitle>Installed Directories</segtitle>
132
133 <seglistitem>
134 <seg>None</seg>
135 <seg>None</seg>
136 <seg>
137 /usr/lib/python&python3-majorver;/site-packages/sphinx_rtd_theme and
138 /usr/lib/python&python3-majorver;/site-packages/sphinx_rtd_theme-&sphinx_rtd_theme-version;.dist-info
139 </seg>
140 </seglistitem>
141 </segmentedlist>
142
143 </sect3>
144
145 </sect2>
Note: See TracBrowser for help on using the repository browser.