summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorsommersoft <sommersoft@gmail.com>2019-07-05 18:00:26 -0500
committersommersoft <sommersoft@gmail.com>2019-07-05 18:00:26 -0500
commit86e885c5fc1d22217da56d9a0d29b798f95bb99d (patch)
tree1e4aa972a010d6a34783239ba66d9670198a2acd /docs
parent7378744bb2357c9b949fc3b74a9dfbb4b7cdb85e (diff)
handle module exclusion when the default is to not include a module
Diffstat (limited to 'docs')
-rw-r--r--docs/shared_bindings_matrix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/shared_bindings_matrix.py b/docs/shared_bindings_matrix.py
index f0942b426..8aa517129 100644
--- a/docs/shared_bindings_matrix.py
+++ b/docs/shared_bindings_matrix.py
@@ -106,6 +106,10 @@ def get_excluded_boards(base_json):
re_pattern = "CIRCUITPY_{}\s=\s(\w)".format(module.upper())
find_module = re.search(re_pattern, contents)
if not find_module:
+ # check if default inclusion is off ('0'). if the board doesn't
+ # have it explicitly enabled, its excluded.
+ if base_json[module]["default_value"] == "0":
+ base_json[module]["excluded"].append(entry.name)
continue
if (find_module.group(1) == "0" and
find_module.group(1) != base_json[module]["default_value"]):