Merge pull request #8312 from jepler/fix-sphinx-82x
Use the ".. jinja" tag to render support_matrix template
This commit is contained in:
commit
8157920d10
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user