]> Gentwo Git Trees - linux/.git/commit
docs: conf.py: better handle latex documents
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 21 Aug 2025 08:16:38 +0000 (10:16 +0200)
committerJonathan Corbet <corbet@lwn.net>
Thu, 21 Aug 2025 20:08:52 +0000 (14:08 -0600)
commitf62ed7688cfe1a09b61776216380b56221a17c5c
tree765de525fbf25566b81678d55a2f707b4ea268e3
parent30c33b62eb875e9840e151f8ba2f7d2558d7e3ba
docs: conf.py: better handle latex documents

The original logic assumed that app.srcdir is identical to the
current working dir. This is the case for a normal build, but,
when SPHINXDIRS="some dir" is used, this is not the case anymore.

Adjust the logic to fill the LaTeX documents considering
app.srcdir, in a way that it will work properly on all cases.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/de23b35a770210950c609deaa32b98cb3673a53a.1755763127.git.mchehab+huawei@kernel.org
Documentation/conf.py