Skip to content

Commit

Permalink
Need to set VIRTUALENV for readthedocs to install mkdocs dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmundra committed Feb 29, 2024
1 parent 4350bd1 commit 9b95b0d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ build:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- pip install poetry
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
post_install:
# Configure git authentication
- git config --global credential.helper store
- echo "https://${GH_TOKEN}:@github.com" > $HOME/.git-credentials
# Install packages
- poetry -C .config/mkdocs/ install
# VIRTUAL_ENV needs to be set manually for now.
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry -C .config/mkdocs/ install
pre_build:
# Symlink all files to a .docs directory so we can build outside the root
- ln -sfT . .docs
Expand Down

0 comments on commit 9b95b0d

Please sign in to comment.