Commit 4327891d authored by Benjamin Cabé's avatar Benjamin Cabé Committed by Fabio Baltieri
Browse files

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: default avatarBenjamin Cabé <benjamin@zephyrproject.org>
parent 96526796
Loading
Loading
Loading
Loading
+5 −1
Changes for doc/_extensions/zephyr/domain/__init__.py: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -1126,7 +1126,11 @@ def install_static_assets_as_needed(


def load_board_catalog_into_domain(app: Sphinx) -> None:
    board_catalog = get_catalog(generate_hw_features=app.config.zephyr_generate_hw_features)
    board_catalog = get_catalog(
        generate_hw_features=(
            app.builder.format == "html" and app.config.zephyr_generate_hw_features
        )
    )
    app.env.domaindata["zephyr"]["boards"] = board_catalog["boards"]
    app.env.domaindata["zephyr"]["vendors"] = board_catalog["vendors"]
    app.env.domaindata["zephyr"]["socs"] = board_catalog["socs"]