Merge pull request #8312 from jepler/fix-sphinx-82x

Use the ".. jinja" tag to render support_matrix template
This commit is contained in:
Dan Halbert 2023-08-21 23:46:25 -04:00 committed by GitHub
commit 8157920d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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