<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/scripts/sphinx-pre-install, branch v6.12.80</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-09-05T20:32:36+00:00</updated>
<entry>
<title>scripts: sphinx-pre-install: remove unnecessary double check for $cur_version</title>
<updated>2024-09-05T20:32:36+00:00</updated>
<author>
<name>Sebastian Muxel</name>
<email>sebastian@muxel.dev</email>
</author>
<published>2024-08-27T13:32:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9b8a79f4c1d844d52273a31bc6511fa8ab5e8669'/>
<id>urn:sha1:9b8a79f4c1d844d52273a31bc6511fa8ab5e8669</id>
<content type='text'>
$cur_version is currently being tested twice with the first test
resulting in an unhelpful "$sphinx returned an error", not continuing to
the more helpful "$sphinx didn't return its version".

This patch removes the first test to return the more useful message.

Fixes: a8b380c379ef ("scripts: sphinx-pre-install: only ask to activate valid venvs")
Signed-off-by: Sebastian Muxel &lt;sebastian@muxel.dev&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Link: https://lore.kernel.org/r/20240827133224.160776-1-sebastian@muxel.dev
</content>
</entry>
<entry>
<title>scripts: sphinx-pre-install: Add pyyaml hint to other distros</title>
<updated>2024-04-02T16:07:51+00:00</updated>
<author>
<name>Thorsten Blum</name>
<email>thorsten.blum@toblux.com</email>
</author>
<published>2024-03-23T12:58:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1cbd16e3c125f34bef481ea048ec59bf24f1cbf4'/>
<id>urn:sha1:1cbd16e3c125f34bef481ea048ec59bf24f1cbf4</id>
<content type='text'>
Extend commit 84b4cc8189f2 ("docs: scripts: sphinx-pre-install: Fix
building docs with pyyaml package") and add pyyaml as an optional
package to Mageia, ArchLinux, and Gentoo.

The Python module pyyaml is required to build the docs, but it is only
listed in Documentation/sphinx/requirements.txt and is therefore missing
when Sphinx is installed as a package and not via pip/pypi.

Signed-off-by: Thorsten Blum &lt;thorsten.blum@toblux.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Link: https://lore.kernel.org/r/20240323125837.2022-2-thorsten.blum@toblux.com
</content>
</entry>
<entry>
<title>scripts/sphinx-pre-install: fix Arch xelatex dependency</title>
<updated>2024-04-02T16:07:51+00:00</updated>
<author>
<name>Li Hua</name>
<email>lihua@email.com</email>
</author>
<published>2024-03-26T10:45:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=886f6cac31cb2072ee79fe3009b7a89cea960ac7'/>
<id>urn:sha1:886f6cac31cb2072ee79fe3009b7a89cea960ac7</id>
<content type='text'>
On Arch Linux, xelatex is installed in the texlive-xetex package.

Signed-off-by: Li Hua &lt;lihua@email.com&gt;
Link: https://lore.kernel.org/r/20240326104515.40346-1-lihua@email.com
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: drop the version constraints for sphinx and dependencies</title>
<updated>2024-03-03T15:17:20+00:00</updated>
<author>
<name>Lukas Bulwahn</name>
<email>lukas.bulwahn@gmail.com</email>
</author>
<published>2024-03-01T14:18:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b31274d58d2156cf884551426ec51315b7cc1ac9'/>
<id>urn:sha1:b31274d58d2156cf884551426ec51315b7cc1ac9</id>
<content type='text'>
As discussed (see Links), there is some inertia to move to the recent
Sphinx versions for the doc build environment.

As first step, drop the version constraints and the related comments. As
sphinx depends on jinja2, jinja2 is pulled in automatically. So drop that.
Then, the sphinx-pre-install script will fail though with:

  Can't get default sphinx version from ./Documentation/sphinx/requirements.txt at ./scripts/sphinx-pre-install line 305.

The script simply expects to parse a version constraint with Sphinx in the
requirements.txt. That version is used in the script for suggesting the
virtualenv directory name.

To suggest a virtualenv directory name, when there is no version given in
the requirements.txt, one could try to guess the version that would be
downloaded with 'pip install -r Documentation/sphinx/requirements.txt'.
However, there seems no simple way to get that version without actually
setting up the venv and running pip. So, instead, name the directory with
the fixed name 'sphinx_latest'.

Finally update the Sphinx build documentation to reflect this directory
name change.

Link: https://lore.kernel.org/linux-doc/874jf4m384.fsf@meer.lwn.net/
Link: https://lore.kernel.org/linux-doc/20240226093854.47830-1-lukas.bulwahn@gmail.com/
Reviewed-by: Akira Yokosawa &lt;akiyks@gmail.com&gt;
Tested-by: Vegard Nossum &lt;vegard.nossum@oracle.com&gt;
Signed-off-by: Lukas Bulwahn &lt;lukas.bulwahn@gmail.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;20240301141800.30218-1-lukas.bulwahn@gmail.com&gt;
</content>
</entry>
<entry>
<title>docs: scripts: sphinx-pre-install: Fix building docs with pyyaml package</title>
<updated>2024-02-14T22:32:03+00:00</updated>
<author>
<name>Thorsten Blum</name>
<email>thorsten.blum@toblux.com</email>
</author>
<published>2024-02-08T20:55:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=84b4cc8189f222ff3e32ea9d09afb7ae4a4a4205'/>
<id>urn:sha1:84b4cc8189f222ff3e32ea9d09afb7ae4a4a4205</id>
<content type='text'>
The Python module pyyaml is required to build the docs, but it is only
listed in Documentation/sphinx/requirements.txt and is therefore missing
when Sphinx is installed as a package and not via pip/pypi.

Add pyyaml as an optional package for multiple distros to fix building the
docs if you prefer to install Sphinx as a package.

Signed-off-by: Thorsten Blum &lt;thorsten.blum@toblux.com&gt;
Reviewed-by: Vegard Nossum &lt;vegard.nossum@oracle.com&gt;
Tested-by: Vegard Nossum &lt;vegard.nossum@oracle.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Link: https://lore.kernel.org/r/20240208205550.984-1-thorsten.blum@toblux.com
</content>
</entry>
<entry>
<title>docs: sphinx-pre-install fix-noto-sans-cjk on fedora</title>
<updated>2024-01-30T21:00:30+00:00</updated>
<author>
<name>Andrew Ballance</name>
<email>andrewjballance@gmail.com</email>
</author>
<published>2024-01-24T04:39:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=36443018a2fa37461baf1aefd2eee10e6dc1c30f'/>
<id>urn:sha1:36443018a2fa37461baf1aefd2eee10e6dc1c30f</id>
<content type='text'>
fedora 38 and later changed the directory and package name that
provides NotoSansCJK-Regular.ttc. this adds the new search path and
suggests the correct package if on fedora 38 or later.

Signed-off-by: Andrew Ballance &lt;andrewjballance@gmail.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Link: https://lore.kernel.org/r/20240124043918.31771-1-andrewjballance@gmail.com
</content>
</entry>
<entry>
<title>docs: Raise the minimum Sphinx requirement to 2.4.4</title>
<updated>2023-12-15T15:36:33+00:00</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2023-12-08T23:10:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3e893e16af55eeeca8faebabcb36fe78c854ba21'/>
<id>urn:sha1:3e893e16af55eeeca8faebabcb36fe78c854ba21</id>
<content type='text'>
Commit 31abfdda6527 (docs: Deprecate use of Sphinx &lt; 2.4.x) in 6.2 added a
warning that support for older versions of Sphinx would be going away.
There have been no complaints, so the time has come.  Raise the minimum
Sphinx version to 2.4.4 and clean out some compatibility code that we no
longer need.

Reviewed-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Link: https://lore.kernel.org/r/874jgs47fq.fsf@meer.lwn.net
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: sphinx-pre-install: don't require the RTD theme</title>
<updated>2022-10-13T17:14:43+00:00</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2022-09-27T16:45:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=df19817f3ff3de28e87139b6d172c0094402e1f2'/>
<id>urn:sha1:df19817f3ff3de28e87139b6d172c0094402e1f2</id>
<content type='text'>
We don't default to the RTD theme anymore, so sphinx-pre-install need not
insist on installing it.

Acked-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>scripts: sphinx-pre-install: place a warning for Sphinx &gt;= 3.0</title>
<updated>2022-07-07T18:47:34+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@kernel.org</email>
</author>
<published>2022-07-02T10:11:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=02bba8ca90b1877ae47400c31002ceb498b0dd9f'/>
<id>urn:sha1:02bba8ca90b1877ae47400c31002ceb498b0dd9f</id>
<content type='text'>
Newer versions of Sphinx have a known bug:
	https://github.com/sphinx-doc/sphinx/pull/8313

Those currently produces 11 false-positive warnings On Sphinx
version 3.1+.

While Sphinx fix is not applied, let's warn adventurers that would
be using Sphinx installed via distro packages.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Link: https://lore.kernel.org/r/085e0ada65c11da9303d07e70c510dc45f21315b.1656756450.git.mchehab@kernel.org
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>scripts: sphinx-pre-install: provide both venv and package installs</title>
<updated>2022-07-07T18:47:34+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@kernel.org</email>
</author>
<published>2022-07-02T10:11:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6a5d7320fb75af071cde628e82ebc938575a2fd6'/>
<id>urn:sha1:6a5d7320fb75af071cde628e82ebc938575a2fd6</id>
<content type='text'>
As it is not a consensus about installing sphinx using venv, and
modern distributions are now shipping with Sphinx versions above
the minimal requirements to build the docs, provide both venv
and package install commands by default.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Link: https://lore.kernel.org/r/7c99d985df204c73e3daafd5fd2f30a31269405d.1656756450.git.mchehab@kernel.org
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
</feed>
