Skip to content

Commit 119ca3b

Browse files
Merge branch 'main' into vlad/lockprof-fix-subclassing-wrapped-locks
2 parents 2bbeecd + bb0792b commit 119ca3b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ build:
88
- cargo install --force --root /home/docs/.asdf --git https://github.com/DataDog/libdatadog --bin dedup_headers tools
99
- git fetch --unshallow || true
1010
- pip install riot
11-
- riot -v run --pass-env build_docs
11+
- READTHEDOCS=1 riot -v run --pass-env build_docs
1212
- mv docs/_build $READTHEDOCS_OUTPUT

scripts/docs/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env bash
22
set -eux
33

4-
if [[ "${READTHEDOCS:-}" = "True" ]]; then
4+
# Normalize READTHEDOCS: lowercase and strip whitespace to match "true" or "1"
5+
rtd_val="${READTHEDOCS:-}"; rtd_val="${rtd_val,,}"; rtd_val="${rtd_val// /}"
6+
if [[ "$rtd_val" == "true" || "$rtd_val" == "1" ]]; then
57
echo "Skipping spelling check in RTD"
68
else
79
if [[ "$(uname)" == "Darwin" ]]; then

0 commit comments

Comments
 (0)