From f64af7d85f3d1435c15f4efa606564b5aaf843f6 Mon Sep 17 00:00:00 2001 From: benjamink Date: Fri, 9 Oct 2026 11:09:08 -0700 Subject: [PATCH 1/2] add format for htmlzip --- .readthedocs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 23166bf..ca61dc1 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -26,6 +26,8 @@ build: sphinx: configuration: docs/source/conf.py +formats: + - htmlzip # Optionally build your docs in additional formats such as PDF and ePub # formats: From d741eed451f3c5f4b8fe4b71b847b61cb50e7588 Mon Sep 17 00:00:00 2001 From: benjamink Date: Tue, 20 Oct 2026 10:03:55 -0700 Subject: [PATCH 2/2] use post-build for htmlzip --- .readthedocs.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index ca61dc1..4e9a858 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -18,6 +18,9 @@ build: pre_build: # Generate on-the-fly Sphinx configuration from Jupyter Book's _config.yml - "pip install . --no-deps" + post_build: + - mkdir -p $READTHEDOCS_OUTPUT/htmlzip + - cd $READTHEDOCS_OUTPUT/html && zip -r ../htmlzip/surface-apps-docs.zip . #conda: # environment: environments/py-3.10-linux-64-dev.conda.lock.yml @@ -26,9 +29,6 @@ build: sphinx: configuration: docs/source/conf.py -formats: - - htmlzip - # Optionally build your docs in additional formats such as PDF and ePub # formats: # - pdf