Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
Signed-off-by: KonanAI <[email protected]>
  • Loading branch information
konan-ai authored Jul 25, 2023
1 parent 5c7a33e commit 5c86f57
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ def github_link(name, rawtext, text, lineno, inliner, options=None, content=None
def setup(app: Sphinx):
app.add_role("gh", github_link)

app.connect('build-finished', run_postprocess)
# 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")
html_dir_path = os.path.join(app.outdir)
# def run_postprocess(app, exception):
# # The script and html directory paths
# script_path = os.path.join(os.path.dirname(__file__), "postprocess.py")
# html_dir_path = os.path.join(app.outdir)

# Call the postprocess script on the html directory
subprocess.check_call([sys.executable, script_path, html_dir_path])
# # Call the postprocess script on the html directory
# subprocess.check_call([sys.executable, script_path, html_dir_path])

0 comments on commit 5c86f57

Please sign in to comment.