Skip to content

Commit c6ac0ba

Browse files
committed
move the support matrix to its own page; add linking for modules
1 parent 19e504f commit c6ac0ba

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

docs/rstjinja.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def rstjinja(app, docname, source):
1010
return
1111

1212
# we only want our one jinja template to run through this func
13-
if "shared-bindings/index" not in docname:
13+
if "shared-bindings/support_matrix" not in docname:
1414
return
1515

1616
src = source[0]

shared-bindings/index.rst

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,7 @@ Modules
1414
:glob:
1515
:maxdepth: 3
1616

17+
support_matrix
1718
*/__init__
1819
help
19-
2020
.. _module-support-matrix:
21-
22-
Support Matrix
23-
---------------
24-
25-
================= ==============================
26-
Module Not Available On
27-
================= ==============================
28-
{%- for key, value in support_matrix|dictsort %}
29-
{{ value.name.ljust(18) }} {{ value.excluded|join(", ") }}{{ '\n'|e }}
30-
{%- endfor %}
31-
================= ==============================

shared-bindings/support_matrix.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Support Matrix
2+
===============
3+
4+
The following table lists the available built-in modules for each CircuitPython
5+
capable board.
6+
7+
.. csv-table::
8+
:header-rows: 1
9+
:widths: 7, 50
10+
11+
"Board", "Modules Available"
12+
{% for key, value in support_matrix|dictsort -%}
13+
"{{ key }}", "{{ '`' ~ value|join("`, `") ~ '`' }}"
14+
{% endfor -%}

0 commit comments

Comments
 (0)