<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/tools/docs/sphinx-build-wrapper, branch master</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-03-30T16:03:40+00:00</updated>
<entry>
<title>doc tools: better handle KBUILD_VERBOSE</title>
<updated>2026-03-30T16:03:40+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-03-27T05:57:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d642acfd597e3ec37138f9a8f5a634845e3612fd'/>
<id>urn:sha1:d642acfd597e3ec37138f9a8f5a634845e3612fd</id>
<content type='text'>
As reported by Jacob, there are troubles when KBUILD_VERBOSE is
set at the environment.

Fix it on both kernel-doc and sphinx-build-wrapper.

Reported-by: Jacob Keller &lt;jacob.e.keller@intel.com&gt;
Closes: https://lore.kernel.org/linux-doc/9367d899-53af-4d9c-9320-22fc4dbadca5@intel.com/
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Tested-by: Jacob Keller &lt;jacob.e.keller@intel.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;7a99788db75630fb14828d612c0fd77c45ec1891.1774591065.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>docs: kdoc_output: fix naming for DOC markups</title>
<updated>2026-03-09T16:34:38+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-03-06T15:45:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4160533d058cfa667159e8d6a46fe42c738a4a84'/>
<id>urn:sha1:4160533d058cfa667159e8d6a46fe42c738a4a84</id>
<content type='text'>
Right now, DOC markups aren't being handled properly, as it was
using the same name for all output.

Fix it by filling the title argument on a different way.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;11d809e5c4bec23240d3ace3f342dbb2a9263446.1772810752.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>docs: sphinx-build-wrapper: don't allow "/" on file names</title>
<updated>2026-03-09T16:34:38+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-03-06T15:45:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0e4c8adad4cacf699672d28e19143dc0b9d145fd'/>
<id>urn:sha1:0e4c8adad4cacf699672d28e19143dc0b9d145fd</id>
<content type='text'>
When handling "DOC:" sections, slash characters may be there.
Prevent using it at the file names, as this is used for directory
separator.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;c1a83a50b0659a5bcf68ef14f9457cc188e91e3a.1772810752.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>docs: sphinx-build-wrapper: better handle troff .TH markups</title>
<updated>2026-03-09T16:34:38+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-03-06T15:45:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5828d3564729e61306456fae02e9d0dc9f2e772d'/>
<id>urn:sha1:5828d3564729e61306456fae02e9d0dc9f2e772d</id>
<content type='text'>
Using a regular expression to match .TH is problematic, as it
doesn't handle well quotation marks.

Use shlex instead.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;9436806316d33aaf68625c00ce068463d3917660.1772810752.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: sphinx-build-wrapper: improve its help message</title>
<updated>2026-02-02T16:57:46+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-01-27T08:03:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=64e4882c8228b07c57e75f510b8c5d7ff46e4edc'/>
<id>urn:sha1:64e4882c8228b07c57e75f510b8c5d7ff46e4edc</id>
<content type='text'>
Besides the parameters that are passed via command line arguments,
the wrapper's behavior is affected by several environment variables.

Document that. While here, use __doc__ for its description.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;e0ccee75f7e7fb499e0f59d5b84469f4b6a21627.1769500383.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>docs: sphinx-build-wrapper: allow -v override -q</title>
<updated>2026-02-02T16:57:46+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-01-27T08:03:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b09cc1ddde9707ef62d2dd1070a1c99556ed7d76'/>
<id>urn:sha1:b09cc1ddde9707ef62d2dd1070a1c99556ed7d76</id>
<content type='text'>
Documentation builds were using "-q" for a long time, but sometimes
it is nice to see the Sphinx progress, without increasing build
verbosity - which would also turn on kernel-doc verbosity.

Instead of doing that, let's parse the sphinx-build already-existing
-v: each time it is used, it increases the verbosity level.

With that, if the default is to use -q, a single -v will disable
quiet mode. Passing more -v will keep increasing its verbosity.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;38b24e97a3cbd2def418359a8e69b1b087a945ad.1769500383.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools/docs: sphinx-build-wrapper: only generate rust docs when requested</title>
<updated>2026-01-23T18:27:22+00:00</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2026-01-17T23:26:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ffb569d59c253399efb2345ddfefe7929cd7e2a8'/>
<id>urn:sha1:ffb569d59c253399efb2345ddfefe7929cd7e2a8</id>
<content type='text'>
When the user explicitly specifies SPHINXDIRS to build a specific
subdirectory it is unexpected that the rust docs are also generated.
Especially as their generation may dominate the execution time.

Only generate the rust docs when they are part of the SPHINXDIRS
requested by the user. 'rust/rustdocs' is not considered, as it is
not a valid SPHINXDIRS anyways.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Reviewed-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Tested-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;20260118-docs-spurious-rust-v1-4-998e14b9ed9e@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>tools/docs: sphinx-build-wrapper: compute sphinxdirs_list earlier</title>
<updated>2026-01-23T18:27:22+00:00</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2026-01-17T23:26:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6f9a96cc96ea405e0f80fede761dc415e33364c7'/>
<id>urn:sha1:6f9a96cc96ea405e0f80fede761dc415e33364c7</id>
<content type='text'>
An upcoming patch will require sphinxdirs_list to be available before
the call to check_rust().

Move it up in the function.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Reviewed-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Tested-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;20260118-docs-spurious-rust-v1-3-998e14b9ed9e@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>tools/docs: sphinx-build-wrapper: make 'rustdoc' a local variable</title>
<updated>2026-01-23T18:27:22+00:00</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2026-01-17T23:26:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2d652135a16b413e38e6d7fed5244690d853756b'/>
<id>urn:sha1:2d652135a16b413e38e6d7fed5244690d853756b</id>
<content type='text'>
All users of this variable are now in the same method.

Demote the instance variable to a local one.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Reviewed-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Tested-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;20260118-docs-spurious-rust-v1-2-998e14b9ed9e@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>tools/docs: sphinx-build-wrapper: generate rust docs only once</title>
<updated>2026-01-23T18:27:22+00:00</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2026-01-17T23:26:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5094f7d5ff2318edfe6f2a9632b31f0ddefd6ee4'/>
<id>urn:sha1:5094f7d5ff2318edfe6f2a9632b31f0ddefd6ee4</id>
<content type='text'>
Currently the rust docs are generated for each entry in SPHINXDIRS.
This is unnecessary as they will be the same for each one.

Move the generation, so it is executed only once.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Reviewed-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Tested-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Message-ID: &lt;20260118-docs-spurious-rust-v1-1-998e14b9ed9e@weissschuh.net&gt;
</content>
</entry>
</feed>
