Skip to content

Commit 4327891

Browse files
kartbenfabiobaltieri
authored andcommitted
doc: extensions: only generate list of hw features in HTML build
Only HTML builds actually display board documentation so there is no point in generating the list of hardware features in other builds. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 9652679 commit 4327891

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/_extensions/zephyr/domain/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,11 @@ def install_static_assets_as_needed(
11261126

11271127

11281128
def load_board_catalog_into_domain(app: Sphinx) -> None:
1129-
board_catalog = get_catalog(generate_hw_features=app.config.zephyr_generate_hw_features)
1129+
board_catalog = get_catalog(
1130+
generate_hw_features=(
1131+
app.builder.format == "html" and app.config.zephyr_generate_hw_features
1132+
)
1133+
)
11301134
app.env.domaindata["zephyr"]["boards"] = board_catalog["boards"]
11311135
app.env.domaindata["zephyr"]["vendors"] = board_catalog["vendors"]
11321136
app.env.domaindata["zephyr"]["socs"] = board_catalog["socs"]

0 commit comments

Comments
 (0)