Skip to content

Commit

Permalink
Merge pull request #8312 from jepler/fix-sphinx-82x
Browse files Browse the repository at this point in the history
Use the ".. jinja" tag to render support_matrix template
  • Loading branch information
dhalbert authored Aug 22, 2023
2 parents a15d139 + 2fc413d commit 8157920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions docs/rstjinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
import re

def render_with_jinja(docname, source):
if "shared-bindings/support_matrix" in docname:
return True
if re.search('^\s+.. jinja$', source[0], re.M):
if re.search('^\s*.. jinja$', source[0], re.M):
return True
return False

Expand Down
2 changes: 2 additions & 0 deletions shared-bindings/support_matrix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Only those boards that provide those modules will be listed.
To exclude boards that provide a module, type a "-" in front of the module name.
You can also type a regular expression as a filter.

.. jinja
.. raw:: html

<p id="support-matrix-filter-block"><input placeholder="Filter the boards by available modules" id="support-matrix-filter" type="text"/><span id="support-matrix-filter-num">(all)</span></p>
Expand Down

0 comments on commit 8157920

Please sign in to comment.