Browse Source
Populate board catalog with shields as well and have them show up in the boards/index page. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>pull/90404/head
9 changed files with 140 additions and 39 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
Shields |
||||
####### |
||||
|
||||
.. toctree:: |
||||
:maxdepth: 1 |
||||
:glob: |
||||
|
||||
**/* |
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
{# |
||||
Copyright (c) 2024-2025, The Linux Foundation. |
||||
SPDX-License-Identifier: Apache-2.0 |
||||
#} |
||||
|
||||
<a |
||||
class="board-card shield" |
||||
{% if shield.doc_page -%} |
||||
href="../{{ shield.doc_page | replace(".rst", ".html") }}" |
||||
{% else -%} |
||||
href="#" |
||||
{% endif -%} |
||||
aria-label="Open the documentation page for {{ shield.full_name }}" |
||||
data-name="{{ shield.full_name}}" |
||||
data-vendor="{{ shield.vendor }}" |
||||
tabindex="0"> |
||||
<div class="vendor">{{ vendors[shield.vendor] }}</div> |
||||
{% if shield.image -%} |
||||
<img alt="A picture of the {{ shield.full_name }} shield" |
||||
src="../_images/{{ shield.image.split('/')[-1] }}" class="picture" /> |
||||
{% else -%} |
||||
<div class="no-picture fa fa-microchip picture"></div> |
||||
{% endif -%} |
||||
<div class="board-name">{{ shield.full_name }}</div> |
||||
</a> |
Loading…
Reference in new issue