Skip to content

Commit 5e82764

Browse files
gmarullcfriedt
authored andcommitted
doc: extensions: doxyrunner: fix HTML output handling
The extension was not evaluating the GENERATE_HTML option correctly. The get_doxygen_option returns a `List[str]`, not a `str`. This effectively means that the Zephyr apidoc has not been updated for a while as the extension was not moving the output to the final destination folder. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent d08c6ee commit 5e82764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/_extensions/zephyr/doxyrunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def sync_doxygen(doxyfile: str, new: Path, prev: Path) -> None:
293293
"""
294294

295295
generate_html = get_doxygen_option(doxyfile, "GENERATE_HTML")
296-
if generate_html == "YES":
296+
if generate_html[0] == "YES":
297297
html_output = get_doxygen_option(doxyfile, "HTML_OUTPUT")
298298
if not html_output:
299299
raise ValueError("No HTML_OUTPUT set in Doxyfile")

0 commit comments

Comments
 (0)