diff options
| author | sommersoft <sommersoft@gmail.com> | 2019-07-27 10:03:18 -0500 |
|---|---|---|
| committer | sommersoft <sommersoft@gmail.com> | 2019-07-27 10:03:18 -0500 |
| commit | c6ac0ba68338775275112839978616106792ec3c (patch) | |
| tree | d5fa27b5f5f9318ff6ff5c633757686d8883bc0c | |
| parent | 19e504f182e6498b06fbe4398a53f027e9b76088 (diff) | |
move the support matrix to its own page; add linking for modules
| -rw-r--r-- | docs/rstjinja.py | 2 | ||||
| -rw-r--r-- | shared-bindings/index.rst | 13 | ||||
| -rw-r--r-- | shared-bindings/support_matrix.rst | 14 |
3 files changed, 16 insertions, 13 deletions
diff --git a/docs/rstjinja.py b/docs/rstjinja.py index a92f2280c..3a08b2599 100644 --- a/docs/rstjinja.py +++ b/docs/rstjinja.py @@ -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] diff --git a/shared-bindings/index.rst b/shared-bindings/index.rst index f32745bc7..9eef42aeb 100644 --- a/shared-bindings/index.rst +++ b/shared-bindings/index.rst @@ -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 %} -================= ============================== diff --git a/shared-bindings/support_matrix.rst b/shared-bindings/support_matrix.rst new file mode 100644 index 000000000..0b40ec996 --- /dev/null +++ b/shared-bindings/support_matrix.rst @@ -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 -%} |
