You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
705 B

# Derived from code on Eric Holscher's blog, found at:
def rstjinja(app, docname, source):
Render our pages as a jinja template for fancy templating goodness.
# Make sure we're outputting HTML
if app.builder.format != 'html':
# we only want our one jinja template to run through this func
if "shared-bindings/support_matrix" not in docname:
src = source[0]
rendered = app.builder.templates.render_string(
src, app.config.html_context
source[0] = rendered
def setup(app):
app.connect("source-read", rstjinja)