Commit bb0792b
authored
chore(docs): stop readthedocs spellcheck (#15679)
## Description
ReadTheDocs environments don't set `READTHEDOCS=True` as expected.
Update the build script to accept `READTHEDOCS=1` (as set in
`.readthedocs.yml`) and normalize the value (case-insensitive, strip
whitespace) to match both `"true"` and `"1"`.
## Testing
Tested with `"True"`, `"TRUE"`, `"true"`, `"1"`, and `" true "`, all
correctly match. Empty, `"False"`, and `"0"` correctly do not match.
## Additional Notes
Failing job:
https://app.readthedocs.org/projects/ddtrace/builds/30721096/1 parent e928462 commit bb0792b
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments