diff options
author | Mauro Carvalho Chehab | 2022-03-26 11:27:22 +0100 |
---|---|---|
committer | Jonathan Corbet | 2022-03-28 13:53:46 -0600 |
commit | bcf0a536bff913f3c77c4c469bff13fd9ebeb1e9 (patch) | |
tree | 8cf582d9e02eff39f88922e223cbf6d27ba549e0 /Documentation | |
parent | b4541803d858dc058e6ba5f1817ab89af95c9c21 (diff) |
docs: kernel_include.py: add sphinx build dependencies
The files included by kernel-include should be added as build
dependencies, in order for sphinx-build to rebuild the corresponding
docs if any changes at the included file happens.
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Link: https://lore.kernel.org/r/d30fc4fa422a13b7e1623d690945c46b58a55e79.1648290305.git.mchehab@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
-rwxr-xr-x | Documentation/sphinx/kernel_include.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/sphinx/kernel_include.py b/Documentation/sphinx/kernel_include.py index f523aa68a36b..abe768088377 100755 --- a/Documentation/sphinx/kernel_include.py +++ b/Documentation/sphinx/kernel_include.py @@ -59,6 +59,7 @@ class KernelInclude(Include): u"""KernelInclude (``kernel-include``) directive""" def run(self): + env = self.state.document.settings.env path = os.path.realpath( os.path.expandvars(self.arguments[0])) @@ -70,6 +71,8 @@ class KernelInclude(Include): self.arguments[0] = path + env.note_dependency(os.path.abspath(path)) + #return super(KernelInclude, self).run() # won't work, see HINTs in _run() return self._run() |