docs: scripts: sphinx-pre-install: Fix building docs with pyyaml package
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 8 Feb 2024 20:55:51 +0000 (21:55 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 14 Feb 2024 22:32:03 +0000 (15:32 -0700)
commit84b4cc8189f222ff3e32ea9d09afb7ae4a4a4205
tree23cecf8adef75161ff6be4a423b93751eeace5e1
parentdc8769a8826b49f0db04566dd001fda929d5de0a
docs: scripts: sphinx-pre-install: Fix building docs with pyyaml package

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 <thorsten.blum@toblux.com>
Reviewed-by: Vegard Nossum <vegard.nossum@oracle.com>
Tested-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240208205550.984-1-thorsten.blum@toblux.com
scripts/sphinx-pre-install