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)