From 102d5e8342b3f5fd664c976d7560ce320a796041 Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Thu, 12 Sep 2024 10:41:18 +0200 Subject: [PATCH] add copy html files to setup --- .github/workflows/ci.yml | 2 +- docs/conf.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b8ad7af..77e156f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: environment-file: environment.yml python-version: "3.12" auto-activate-base: true - activate-environment: "" + activate-environment: true - name: "Build HTML docs" run: | make -C docs html linkcheck diff --git a/docs/conf.py b/docs/conf.py index 238dadca..68572168 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -489,3 +489,6 @@ def copy_html_files(app, exception): print(f"Copy {html_file} to {destination_file}") except Exception as e: print(f"Failed to copy HTML files: {e}") + +def setup(app): + app.connect("build-finished", copy_html_files)