docs/sphinx: include kernel-doc script as a dependency
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 16 Jan 2025 16:03:00 +0000 (16:03 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 17 Jan 2025 10:45:38 +0000 (10:45 +0000)
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>

docs/sphinx/depfile.py

index e74be6af98bcd57355f7f85b268d2f65d6af1ac3..d3c774d28b1c4418fda73aded7cf6366f6754cda 100644 (file)
@@ -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: