Skip to content

Commit 956d49a

Browse files
gmarullnashif
authored andcommitted
doc: extensions: doxyrunner: do not modify extension config
After the introduction of #41688, doxyrunner extension modifies the fmt_vars content (from a variable defined in `conf.py`) when the output directory variable is defined. This means that Sphinx will always get an outdated environment and so will always perform a full build instead of an incremental build. This patch makes a copy first to prevent this situation. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 43ed49c commit 956d49a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/_extensions/zephyr/doxyrunner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def process_doxyfile(
185185
raise ValueError("Invalid formatting pattern or variables")
186186

187187
if outdir_var:
188+
fmt_vars = fmt_vars.copy()
188189
fmt_vars[outdir_var] = outdir.as_posix()
189190

190191
for var, value in fmt_vars.items():

0 commit comments

Comments
 (0)