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 4641d13
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 [[ "$READTHEDOCS_VERSION_NAME" =~ ^[0-9]+$ ]]; then
export SPHINXOPTS="-W"
fi
- env
pre_build:
- env

python:
Expand Down

0 comments on commit 4641d13

Please sign in to comment.