Skip to content

Commit 2e94b80

Browse files
kartbenLingaoM
authored andcommitted
doc: scripts: gen_devicetree_rest: add link to board catalog in sidebar
This adds a link to the board catalog in the sidebar of each binding page, directing users to boards using the compatible. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent b46162f commit 2e94b80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/_scripts/gen_devicetree_rest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ def make_sidebar(compatible, vendor_name, vendor_ref_target, driver_path=None):
505505
"",
506506
f" :Name: ``{compatible}``",
507507
f" :Vendor: :ref:`{vendor_name} <{vendor_ref_target}>`",
508+
f" :Used in: :zephyr:board-catalog:`List of boards <#compatibles={compatible}>` using",
509+
" this compatible",
508510
]
509511
if driver_path:
510512
lines.append(f" :Driver: :zephyr_file:`{driver_path}`")

0 commit comments

Comments
 (0)