linux/tools/docs
Thomas Weißschuh ffb569d59c tools/docs: sphinx-build-wrapper: only generate rust docs when requested
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 <linux@weissschuh.net>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tested-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260118-docs-spurious-rust-v1-4-998e14b9ed9e@weissschuh.net>
2026-01-23 11:27:22 -07:00
..
check-variable-fonts.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
checktransupdate.py docs: move checktransupdate.py to tools/docs 2025-10-28 16:01:13 -06:00
documentation-file-ref-check docs: move scripts/documentation-file-ref-check to tools/docs 2025-10-28 16:01:17 -06:00
features-refresh.sh docs: Move the "features" tools to tools/docs 2025-10-28 16:01:00 -06:00
find-unused-docs.sh docs: kdoc: move kernel-doc to tools/docs 2026-01-20 15:31:06 -07:00
gen-redirects.py docs: add tools/docs/gen-redirects.py 2025-09-09 13:37:16 -06:00
gen-renames.py docs: add tools/docs/gen-renames.py 2025-09-09 13:37:16 -06:00
get_abi.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
get_feat.py tools/docs/get_feat.py: convert get_feat.pl to Python 2025-11-21 10:32:30 -07:00
kernel-doc docs: kdoc: improve description of MsgFormatter 2026-01-20 15:31:06 -07:00
list-arch.sh docs: Move the "features" tools to tools/docs 2025-10-28 16:01:00 -06:00
parse-headers.py docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
sphinx-build-wrapper tools/docs: sphinx-build-wrapper: only generate rust docs when requested 2026-01-23 11:27:22 -07:00
sphinx-pre-install docs: bring some order to our Python module hierarchy 2025-11-18 09:22:40 -07:00
test_doc_build.py docs: move test_doc_build.py to tools/docs 2025-10-28 16:01:24 -06:00