Commit 2b1bbbf
committed
hardware-catalog: find images based on Zephyr's patterning
Use the same glob pattern approach from the Zephyr Doc generator to locate
images for the board catalog:
https://github.com/zephyrproject-rtos/zephyr/blob/999b19d6ceaee29902434bda9c160486a3eb75bc/doc/_scripts/gen_boards_catalog.py#L80-L100
This results in a small number of boards having an image selected that is not
the ideal image to use. This behavior matches what Zephyr is showing in Docs,
and a very large number of boards that didn't have a photo in our board catalog
now do.
Signed-off-by: Mike Szczys <mike@golioth.io>1 parent 0686d4f commit 2b1bbbf
1 file changed
Lines changed: 19 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
61 | 57 | | |
62 | | - | |
| 58 | + | |
63 | 59 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
322 | | - | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | | - | |
| 326 | + | |
326 | 327 | | |
0 commit comments