doc: Add build env variable to know if doxygen has run
Some extensions may be able to run faster if they can check if Doxygen contents has changed from one build to the other Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
be2993be6e
commit
02ad7ef1f9
@ -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)
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user