Skip to content

Commit

Permalink
Fix docs build (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjoseph92 authored Aug 10, 2024
1 parent 57d2d45 commit 761bf7c
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 3 deletions.
1 change: 0 additions & 1 deletion .pdm-python

This file was deleted.

10 changes: 8 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ build:
python: "3.8"
jobs:
post_install:
- env
- ls -al $READTHEDOCS_VIRTUALENV_PATH
- python --version
- python -c "import sys; print(sys.executable)"
- ls -l $(python -c "import sys; print(sys.executable)")
# Install PDM in its own isolated environment, so docs deps don't trample its deps
- curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
- curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python -
# TODO how to get `pdm` on the $PATH?
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH $HOME/.local/bin/pdm info
# https://github.com/pdm-project/pdm/discussions/1365#discussioncomment-3581356
# NOTE: pandoc fails in isolation mode
- VIRTUAL_ENV=$(dirname $(dirname $(which python))) $HOME/.local/bin/pdm sync --no-isolation -G viz -dG docs
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH $HOME/.local/bin/pdm sync -v -G viz -dG docs
Loading

0 comments on commit 761bf7c

Please sign in to comment.