From 71f41deebc2d8ae946a1847f3bf43c81332f4f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Sz=C3=A9pk=C3=BAti?= Date: Tue, 9 May 2023 20:11:51 +0200 Subject: [PATCH] Work around Readthedocs command parsing bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bence Szépkúti --- .readthedocs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index a98bec72f..2b38c07e0 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -16,6 +16,7 @@ build: - breathe-apidoc -o docs/api apidoc/xml post_build: - | + # Work around Readthedocs bug: Command parsing fails if the 'if' statement is on the first line if [ "$READTHEDOCS_VERSION" = "development" ]; then "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml fi