diff --git a/doc/_extensions/zephyr/api_overview.py b/doc/_extensions/zephyr/api_overview.py index 74a4d35ba69590..15bbe0e804b001 100644 --- a/doc/_extensions/zephyr/api_overview.py +++ b/doc/_extensions/zephyr/api_overview.py @@ -141,6 +141,9 @@ def sync_contents(app: Sphinx) -> None: else: doxygen_out_dir = Path(app.outdir) / "_doxygen" + if not app.env.doxygen_input_changed: + return + doxygen_xml_dir = doxygen_out_dir / "xml" groups = parse_xml_dir(doxygen_xml_dir) diff --git a/doc/_extensions/zephyr/doxyrunner.py b/doc/_extensions/zephyr/doxyrunner.py index 8bd10e63a97c97..64d4a2c793a478 100644 --- a/doc/_extensions/zephyr/doxyrunner.py +++ b/doc/_extensions/zephyr/doxyrunner.py @@ -362,8 +362,8 @@ def doxygen_build(app: Sphinx) -> None: ) logger.info("Checking if Doxygen needs to be run...") - changed = doxygen_input_has_changed(app.env, doxyfile) - if not changed: + app.env.doxygen_input_changed = doxygen_input_has_changed(app.env, doxyfile) + if not app.env.doxygen_input_changed: logger.info("Doxygen build will be skipped (no changes)!") return