Commit f9fcc190 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add CI_SUPPORT_SPHINX_VERSION_SPECIFIER

parent 72cff133
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -387,8 +387,12 @@ run_examples()

build_docs()
{
  if test "$CI_SUPPORT_SPHINX_VERSION_SPECIFIER" = ""; then
    # >=3.2.1 for https://github.com/sphinx-doc/sphinx/issues/8084
  with_echo $PY_EXE -m pip install "sphinx>=3.2.1" furo sphinx-copybutton
    CI_SUPPORT_SPHINX_VERSION_SPECIFIER=">=3.2.1"
  fi
  with_echo $PY_EXE -m pip install "sphinx$CI_SUPPORT_SPHINX_VERSION_SPECIFIER" \
    furo sphinx-copybutton

  cd doc