From 9690a2b15c66f7ed5c5ee6f852a85d1028c285bc Mon Sep 17 00:00:00 2001 From: Gavin Uberti Date: Thu, 15 Dec 2022 16:18:18 -0800 Subject: [PATCH] Hack to render %env correctly --- docs/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/conf.py b/docs/conf.py index 83cb847cf9a65..4364d45915475 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -603,6 +603,7 @@ def process_docstring(app, what, name, obj, options, lines): def strip_ipython_magic(app, docname, source): for i in range(len(source)): source[i] = re.sub(r'%%.*\n\s*', "", source[i]) + source[i] = re.sub(r'%env', "export", source[i]) def setup(app):