Skip to content

Commit

Permalink
RTD: Try to set SPHINXOPTS="-W" for PR builds
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jun 18, 2024
1 parent 88afa33 commit 8b6e36f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ build:
jobs:
post_checkout:
- git fetch --unshallow
# Use -W builds for PRs
- |
if (echo $READTHEDOCS_VERSION_NAME | grep -E '^[0-9]+$' >/dev/null); then
export SPHINXOPTS="-W"
fi
- env
pre_build:
- env

python:
Expand Down

0 comments on commit 8b6e36f

Please sign in to comment.