<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/docs, branch master</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=master</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2026-02-02T16:57:46Z</updated>
<entry>
<title>tools: sphinx-build-wrapper: improve its help message</title>
<updated>2026-02-02T16:57:46Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-01-27T08:03:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/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:46Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-01-27T08:03:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/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:22Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2026-01-17T23:26:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/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:22Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2026-01-17T23:26:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/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:22Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2026-01-17T23:26:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/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:22Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2026-01-17T23:26:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/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>
<entry>
<title>docs: sphinx-build-wrapper: stop setting kerneldoc_bin for Sphinx</title>
<updated>2026-01-20T22:50:38Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2026-01-20T22:50:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4a3efd128f7da996b677151790d043ec44a00561'/>
<id>urn:sha1:4a3efd128f7da996b677151790d043ec44a00561</id>
<content type='text'>
Now that the Sphinx build does not use the kerneldoc_bin configuration
variable, we shouldn't try to set it in the build wrapper or we get a nifty
warning:

  WARNING: unknown config value 'kerneldoc_bin' in override, ignoring

Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: improve description of MsgFormatter</title>
<updated>2026-01-20T22:31:06Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-01-19T12:05:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=35c0f975ef4a96cb488bcb5fca6e852fc347bc49'/>
<id>urn:sha1:35c0f975ef4a96cb488bcb5fca6e852fc347bc49</id>
<content type='text'>
The description there is quite vague. Make it clearer.

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;94269990e2d665bec08a1b6f4d28d84939cb9d83.1768823489.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: move the return values to the helper message</title>
<updated>2026-01-20T22:31:06Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2026-01-19T12:05:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=32e9a42440a230b14c438099bc5fccb5012a638a'/>
<id>urn:sha1:32e9a42440a230b14c438099bc5fccb5012a638a</id>
<content type='text'>
It makes sense to describe what kernel-doc is expected to return
on its help message. Move such messages to argparse epilog.

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;3bcfa48016770929fcd073376515e3ff0b777ea8.1768823489.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>docs: kdoc: move kernel-doc to tools/docs</title>
<updated>2026-01-20T22:31:06Z</updated>
<author>
<name>Jonathan Corbet</name>
<email>corbet@lwn.net</email>
</author>
<published>2026-01-19T12:05:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=eba6ffd126cd52358181ed5a179644a161f9c65f'/>
<id>urn:sha1:eba6ffd126cd52358181ed5a179644a161f9c65f</id>
<content type='text'>
kernel-doc is the last documentation-related tool still living outside of
the tools/docs directory; the time has come to move it over.

[mchehab: fixed kdoc lib location]

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;311d17e403524349940a8b12de6b5e91e554b1f4.1768823489.git.mchehab+huawei@kernel.org&gt;
</content>
</entry>
</feed>
