diff --git a/docs/source/conf.py b/docs/source/conf.py index f7e53aa7..585523e7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -52,9 +52,9 @@ epub_show_urls = "footnote" -# def setup(app): -# def rst_jinja_render(app, _, source): -# rst_context = {"benchmarl": benchmarl} -# source[0] = app.builder.templates.render_string(source[0], rst_context) -# -# app.connect("source-read", rst_jinja_render) +def setup(app): + def rst_jinja_render(app, _, source): + rst_context = {"benchmarl": benchmarl} + source[0] = app.builder.templates.render_string(source[0], rst_context) + + app.connect("source-read", rst_jinja_render)