fix: docs generator (#41)

This commit is contained in:
Axel Cocat
2022-06-01 20:22:25 +02:00
committed by GitHub
parent 47de11cca3
commit 7e64c3dcbd

View File

@@ -32,7 +32,7 @@ def make_renderer(template_path, link_parser_factory):
"""Return a function that can be used to render Jinja2 templates from the `template_path` directory.""" """Return a function that can be used to render Jinja2 templates from the `template_path` directory."""
# Set up jinja2 environment to load templates from the templates folder. # Set up jinja2 environment to load templates from the templates folder.
env = Environment(loader=FileSystemLoader(template_path), extensions=['jinja2.ext.with_']) env = Environment(loader=FileSystemLoader(template_path))
def inner(template_name, output_path, level, **kwargs): def inner(template_name, output_path, level, **kwargs):