Make summary more helpful; use a html list
This commit is contained in:
parent
f2b9e98a21
commit
94a4090542
2
conf.py
2
conf.py
|
@ -52,7 +52,7 @@ modules_support_matrix_reverse = defaultdict(list)
|
|||
for board, modules in modules_support_matrix.items():
|
||||
for module in modules:
|
||||
modules_support_matrix_reverse[module].append(board)
|
||||
modules_support_matrix_reverse = dict((module, ", ".join(boards)) for module, boards in modules_support_matrix_reverse.items())
|
||||
modules_support_matrix_reverse = dict((module, sorted(boards)) for module, boards in modules_support_matrix_reverse.items())
|
||||
|
||||
html_context = {
|
||||
'support_matrix': modules_support_matrix,
|
||||
|
|
|
@ -19,8 +19,12 @@
|
|||
|
||||
<p>
|
||||
<details>
|
||||
<summary>Module Availability</summary>
|
||||
Available on: {{ support_matrix_reverse[obj.name] }}
|
||||
<summary>Available on these boards</summary>
|
||||
<ul>
|
||||
{% for board in support_matrix_reverse[obj.name] %}
|
||||
<li> {{ board }}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Reference in New Issue