Skip to content

Commit e007555

Browse files
committed
Fix ReadTheDocs configuration
Use the `--yes` flag of `mamba env create` in case environment exists. Skip `poetry run` when running `sphinx-build` since Poetry installs in the conda environment directly. Remove the workaround for the unwarranted error about "missing `conda.environment`" configuration setting, because it has been fixed already. See: * readthedocs/readthedocs.org#10979 (comment) * readthedocs/readthedocs.org#11040
1 parent 5668661 commit e007555

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.readthedocs.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ build:
2020
python: "mambaforge-22.9"
2121

2222
commands:
23-
- "mamba env create --file conda-environment-dev.yml"
23+
- "mamba env create --file conda-environment-dev.yml --yes"
2424
- "mamba run --name mxcubecore poetry install --only=docs,main"
25-
- "mamba run --name mxcubecore poetry run sphinx-build -T -E -b html -c ./docs/ ./docs/source/ ${READTHEDOCS_OUTPUT}/html/"
26-
27-
# `conda.environment` is probably not used, since we use custom commands only,
28-
# but it seems to be required (wrongly) by ReadTheDocs config file validation.
29-
# https://github.com/readthedocs/readthedocs.org/pull/10979#issuecomment-1896036953
30-
conda:
31-
environment: "conda-environment-dev.yml"
25+
- "mamba run --name mxcubecore sphinx-build -T -E -b html -c ./docs/ ./docs/source/ ${READTHEDOCS_OUTPUT}/html/"
3226

3327

3428
... # EOF

0 commit comments

Comments
 (0)