move the support matrix to its own page; add linking for modules

This commit is contained in:
sommersoft 2019-07-27 10:03:18 -05:00
parent 19e504f182
commit c6ac0ba683
3 changed files with 16 additions and 13 deletions

View File

@ -10,7 +10,7 @@ def rstjinja(app, docname, source):
return
# we only want our one jinja template to run through this func
if "shared-bindings/index" not in docname:
if "shared-bindings/support_matrix" not in docname:
return
src = source[0]

View File

@ -14,18 +14,7 @@ Modules
:glob:
:maxdepth: 3
support_matrix
*/__init__
help
.. _module-support-matrix:
Support Matrix
---------------
================= ==============================
Module Not Available On
================= ==============================
{%- for key, value in support_matrix|dictsort %}
{{ value.name.ljust(18) }} {{ value.excluded|join(", ") }}{{ '\n'|e }}
{%- endfor %}
================= ==============================

View File

@ -0,0 +1,14 @@
Support Matrix
===============
The following table lists the available built-in modules for each CircuitPython
capable board.
.. csv-table::
:header-rows: 1
:widths: 7, 50
"Board", "Modules Available"
{% for key, value in support_matrix|dictsort -%}
"{{ key }}", "{{ '`' ~ value|join("`, `") ~ '`' }}"
{% endfor -%}