diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 104ef7674a..a98bec72f6 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -15,8 +15,10 @@ build: - make apidoc - breathe-apidoc -o docs/api apidoc/xml post_build: - - '[ "$READTHEDOCS_VERSION" != "development" ] || "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml' - + - | + if [ "$READTHEDOCS_VERSION" = "development" ]; then + "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml + fi # Build documentation in the docs/ directory with Sphinx sphinx: