There was an error while loading. Please reload this page.
1 parent 9c8fbf1 commit dcd860fCopy full SHA for dcd860f
1 file changed
.readthedocs.yml
@@ -4,8 +4,14 @@ build:
4
os: ubuntu-24.04
5
tools:
6
python: "3.12"
7
-
8
commands:
+ - |
9
+ if [ "$READTHEDOCS_VERSION_TYPE" != "external" ]; then
10
+ CHANGED_FILES=$(git diff --name-only HEAD^ HEAD || echo "")
11
+ if [ -n "$CHANGED_FILES" ] && ! echo "$CHANGED_FILES" | grep -qE '\.(po|yaml|yml)$'; then
12
+ exit 183
13
+ fi
14
15
- git clone --depth 1 --branch v3.14.6 https://github.com/python/cpython venv/cpython
16
- pip install -r venv/cpython/Doc/requirements.txt
17
- mkdir -p venv/cpython/Doc/locales/fa/LC_MESSAGES
@@ -20,4 +26,4 @@ build:
20
26
-D gettext_allow_fuzzy_translations=1
21
27
-D html_theme_options.is_rtl=1
22
28
venv/cpython/Doc
23
- $READTHEDOCS_OUTPUT/html
29
+ $READTHEDOCS_OUTPUT/html
0 commit comments