Prompted by the announced better support of conda in readthedocs, more memory! I setup a Python package with conda
to automatically build the documentation on readthedocs.
I had some trouble because I couldn’t find a minimal example that gives all the necessary configuration options, for example if python / install
is not provided, the project is not even built.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
conda: | |
environment: docs/environment.yml | |
build: | |
image: latest | |
# This part is necessary otherwise the project is not built | |
python: | |
version: 3.7 | |
install: | |
- method: pip | |
path: . | |
# By default readthedocs does not checkout git submodules | |
submodules: | |
include: all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: readthedocs | |
dependencies: | |
- python=3.7 | |
- astropy | |
- numpy | |
- cython | |
- matplotlib | |
- pytest | |
- scipy |