Skip to content

Commit 8157920

Browse files
authored
Merge pull request #8312 from jepler/fix-sphinx-82x
Use the ".. jinja" tag to render support_matrix template
2 parents a15d139 + 2fc413d commit 8157920

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/rstjinja.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
import re
55

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

shared-bindings/support_matrix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Only those boards that provide those modules will be listed.
1111
To exclude boards that provide a module, type a "-" in front of the module name.
1212
You can also type a regular expression as a filter.
1313

14+
.. jinja
15+
1416
.. raw:: html
1517

1618
<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>

0 commit comments

Comments
 (0)