From 40f449cffcbcf431201cef5b8a9d34b0cfa94036 Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Thu, 23 Apr 2026 15:18:00 +0200 Subject: [PATCH] DOCS: Download example datasets before doc build --- .readthedocs.yaml | 1 + ci/scripts/download-all-tutorial-datasets.py | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 ci/scripts/download-all-tutorial-datasets.py diff --git a/.readthedocs.yaml b/.readthedocs.yaml index fd072af0d9..eac4916df9 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -13,6 +13,7 @@ build: - pixi install -e docs build: html: + - pixi run -e docs python ci/scripts/download-all-tutorial-datasets.py - pixi run -e docs sphinx-build -T -b html docs $READTHEDOCS_OUTPUT/html sphinx: configuration: docs/conf.py diff --git a/ci/scripts/download-all-tutorial-datasets.py b/ci/scripts/download-all-tutorial-datasets.py new file mode 100644 index 0000000000..3676012bb8 --- /dev/null +++ b/ci/scripts/download-all-tutorial-datasets.py @@ -0,0 +1,4 @@ +import parcels.tutorial + +for name in parcels.tutorial.list_datasets(): + parcels.tutorial.open_dataset(name)