diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-08-14 18:13:21 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-08-30 16:37:23 +0100 |
| commit | 33be8171e2fe02173d24ffd61bd97bf9c2b37834 (patch) | |
| tree | 2e89165ee65fc8bf63b76641557470d2c6939a1b /docs/sphinx/kerneldoc.py | |
| parent | 9cbe72b868b7cb04f7553220738f1286b6f0dc32 (diff) | |
| download | focaccia-qemu-33be8171e2fe02173d24ffd61bd97bf9c2b37834.tar.gz focaccia-qemu-33be8171e2fe02173d24ffd61bd97bf9c2b37834.zip | |
scripts/kerneldoc: Switch to the Python kernel-doc script
Change the Sphinx config to run the new Python kernel-doc script instead of the Perl one. The only difference between the two is that the new script does not handle the -sphinx-version option, instead assuming that Sphinx is always at least version 3: so we must delete the code that passes that option to avoid the Python script complaining about an unknown option. QEMU's minimum Sphinx version is already 3.4.3, so this doesn't change the set of versions we can handle. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Message-id: 20250814171324.1614516-7-peter.maydell@linaro.org
Diffstat (limited to '')
| -rw-r--r-- | docs/sphinx/kerneldoc.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/docs/sphinx/kerneldoc.py b/docs/sphinx/kerneldoc.py index 30bb343198..9721072e47 100644 --- a/docs/sphinx/kerneldoc.py +++ b/docs/sphinx/kerneldoc.py @@ -63,11 +63,6 @@ class KernelDocDirective(Directive): env = self.state.document.settings.env cmd = env.config.kerneldoc_bin + ['-rst', '-enable-lineno'] - # Pass the version string to kernel-doc, as it needs to use a different - # dialect, depending what the C domain supports for each specific - # Sphinx versions - cmd += ['-sphinx-version', sphinx.__version__] - # Pass through the warnings-as-errors flag if env.config.kerneldoc_werror: cmd += ['-Werror'] |