From b77bb545a8cffba00eb77a5ace448a6698edc274 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Mon, 25 Jul 2022 16:23:56 +0200 Subject: [PATCH] docs: Fix sphinx-tabs version in docs-builder There is an incompatibility issue between the sphinx version in Ubuntu focal and the docutils version pulled in by sphinx-tabs. We need to make sure that pip doesn't pull in a version of docutils that would break sphinx: https://github.com/sphinx-doc/sphinx/issues/9841 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .oniro-ci/containers/docs-builder/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.oniro-ci/containers/docs-builder/Dockerfile b/.oniro-ci/containers/docs-builder/Dockerfile index 5556ce60..19246a0e 100644 --- a/.oniro-ci/containers/docs-builder/Dockerfile +++ b/.oniro-ci/containers/docs-builder/Dockerfile @@ -16,4 +16,7 @@ RUN apt-get update -qq \ && eatmydata apt-get install -qq -y 'ca-certificates=20211016~20.04.1' \ && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* -RUN pip3 install sphinx-tabs +# We need to fix the version here to avoid pulling docutils 0.18 which is +# incompatible with the sphinx version from Ubuntu focal. See more here: +# https://github.com/sphinx-doc/sphinx/issues/9841 +RUN pip3 install sphinx-tabs==3.4.0 -- GitLab