summary refs log tree commit diff stats
path: root/docs/sphinx/depfile.py
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2025-01-16 16:03:00 +0000
committerAlex Bennée <alex.bennee@linaro.org>2025-01-17 10:45:38 +0000
commit7b2c98854cf931cc2a090ead5cdc5c1bed4e9f41 (patch)
tree931bb62c81caaedfa34c83142117ba49faa94e2c /docs/sphinx/depfile.py
parent2012375d1874cac8b1c0f68b84d4b21be02186d6 (diff)
downloadfocaccia-qemu-7b2c98854cf931cc2a090ead5cdc5c1bed4e9f41.tar.gz
focaccia-qemu-7b2c98854cf931cc2a090ead5cdc5c1bed4e9f41.zip
docs/sphinx: include kernel-doc script as a dependency
When we update the script we should rebuild the docs. Otherwise
breaking changes made to the kdoc script don't become apparent until
later.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250116160306.1709518-32-alex.bennee@linaro.org>
Diffstat (limited to 'docs/sphinx/depfile.py')
-rw-r--r--docs/sphinx/depfile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/sphinx/depfile.py b/docs/sphinx/depfile.py
index e74be6af98..d3c774d28b 100644
--- a/docs/sphinx/depfile.py
+++ b/docs/sphinx/depfile.py
@@ -31,6 +31,9 @@ def get_infiles(env):
         for path in Path(static_path).rglob('*'):
             yield str(path)
 
+    # also include kdoc script
+    yield str(env.config.kerneldoc_bin[1])
+
 
 def write_depfile(app, exception):
     if exception: