Skip to content

Commit b71dace

Browse files
committed
docs: Allow them to build faster by skipping the shared bindings matrix
I've identified that this is a bottleneck when I am refining documentation; by returning a bare minimum of data to allow the doc build to complete, I can do more builds in less time. To use, `env NO_BINDINGS_MATRIX= make html`
1 parent f5bf485 commit b71dace

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/shared_bindings_matrix.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ def get_settings_from_makefile(port_dir, board_name):
173173
174174
This list must explicitly include any setting queried by tools/ci_set_matrix.py.
175175
"""
176+
if os.getenv('NO_BINDINGS_MATRIX'):
177+
return {
178+
'CIRCUITPY_BUILD_EXTENSIONS': '.bin'
179+
}
180+
176181
contents = subprocess.run(
177182
["make", "-C", port_dir, "-f", "Makefile", f"BOARD={board_name}", "print-CFLAGS", "print-CIRCUITPY_BUILD_EXTENSIONS", "print-FROZEN_MPY_DIRS", "print-SRC_PATTERNS", "print-SRC_SUPERVISOR"],
178183
encoding="utf-8",

0 commit comments

Comments
 (0)