From aaee19d3694079296d9175bd0a09176e4158232f Mon Sep 17 00:00:00 2001 From: KonanAI <110348966+konan-ai@users.noreply.github.com> Date: Tue, 25 Jul 2023 16:39:19 -0400 Subject: [PATCH] Update conf.py Signed-off-by: KonanAI <110348966+konan-ai@users.noreply.github.com> --- docs/conf.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index f03f310..24d40d3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -103,17 +103,17 @@ def github_link(name, rawtext, text, lineno, inliner, options=None, content=None node = reference(rawtext, words, refuri=url, **options) return [node], [] -# def setup(app: Sphinx): -# app.add_role("gh", github_link) -# app.connect('build-finished', run_postprocess) +def setup(app: Sphinx): + app.add_role("gh", github_link) + app.connect('build-finished', run_postprocess) -# def run_postprocess(app, exception): -# # The script and html directory paths -# script_path = os.path.join(os.path.dirname(__file__), "postprocess.py") +def run_postprocess(app, exception): + # The script and html directory paths + script_path = os.path.join(os.path.dirname(__file__), "postprocess.py") -# # The path to the 'index.html' file -# html_file_path = os.path.join(app.outdir, "index.html") + # The path to the 'index.html' file + html_file_path = os.path.join(app.outdir, "index.html") -# # Call the postprocess script on the 'index.html' file -# subprocess.check_call([sys.executable, script_path, html_file_path]) + # Call the postprocess script on the 'index.html' file + subprocess.check_call([sys.executable, script_path, html_file_path])