Skip to content

Commit 94a4090

Browse files
committed
Make summary more helpful; use a html list
1 parent f2b9e98 commit 94a4090

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
for board, modules in modules_support_matrix.items():
5353
for module in modules:
5454
modules_support_matrix_reverse[module].append(board)
55-
modules_support_matrix_reverse = dict((module, ", ".join(boards)) for module, boards in modules_support_matrix_reverse.items())
55+
modules_support_matrix_reverse = dict((module, sorted(boards)) for module, boards in modules_support_matrix_reverse.items())
5656

5757
html_context = {
5858
'support_matrix': modules_support_matrix,

docs/autoapi/templates/python/module.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@
1919

2020
<p>
2121
<details>
22-
<summary>Module Availability</summary>
23-
Available on: {{ support_matrix_reverse[obj.name] }}
22+
<summary>Available on these boards</summary>
23+
<ul>
24+
{% for board in support_matrix_reverse[obj.name] %}
25+
<li> {{ board }}
26+
{% endfor %}
27+
</ul>
2428
</details>
2529
</p>
2630

0 commit comments

Comments
 (0)