Skip to content

Commit f17823e

Browse files
zhsjShengjing Zhu
authored and
Shengjing Zhu
committed
Fix broken CI caused by Sphinx 3.0
Closes: #107
1 parent 76451e7 commit f17823e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/scripts/build.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,11 @@ error() {
1313
cd cpython/Doc || exit 1
1414
mkdir -p locales/"$LOCALE"/
1515
ln -sfn "$(realpath ../../docs)" locales/"$LOCALE"/LC_MESSAGES
16-
make venv
17-
make html SPHINXOPTS="-D language=$LOCALE -D gettext_compact=0 -W --keep-going -j2" 2> >(error)
16+
17+
# make venv
18+
# create venv manually, so we can specify sphinx version
19+
VENVDIR=./venv
20+
python3 -m venv $VENVDIR
21+
$VENVDIR/bin/python3 -m pip install -U pip setuptools
22+
$VENVDIR/bin/python3 -m pip install -U "Sphinx<3.0" blurb python-docs-theme
23+
make html VENVDIR=$VENVDIR SPHINXOPTS="-D language=$LOCALE -D gettext_compact=0 -W --keep-going -j2" 2> >(error)

0 commit comments

Comments
 (0)