From 8423278b9e53932067f837d646c79b2c63d81943 Mon Sep 17 00:00:00 2001 From: fabcor Date: Wed, 17 Jan 2024 15:39:02 +0100 Subject: [PATCH] Fix `.readthedocs.yaml` GitHub: fix https://github.com/mxcube/mxcubecore/issues/839 --- .readthedocs.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 9a254f21dc..b9c37b3337 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -19,10 +19,21 @@ build: tools: python: "mambaforge-22.9" +# jobs: +# post_create_environment: +# - "poetry config virtualenvs.create false" +# post_install: +# - "poetry install --only=docs,main" + commands: - "mamba env create --file conda-environment-dev.yml" - "mamba run --name mxcubecore poetry install --only=docs,main" - "mamba run --name mxcubecore poetry run sphinx-build -T -E -b html -c ./docs/ ./docs/source/ ${READTHEDOCS_OUTPUT}/html/" +# `conda.environment` is probably not used, since we have custom commands, +# but it seems to be required (wrongly) by ReadTheDocs config file validation. +conda: + environment: "conda-environment-dev.yml" + ... # EOF