Skip to content

Commit 8f903c8

Browse files
committed
fix build workflow
1 parent 1b8e1d7 commit 8f903c8

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ jobs:
6161
# ref: main
6262
ref: stes/add-xcebra
6363

64-
- name: Set up Python ${{ matrix.python-version }}
64+
- name: Set up Python 3.10
6565
uses: actions/setup-python@v5
6666
with:
67-
python-version: ${{ matrix.python-version }}
67+
python-version: 3.10
6868

6969
- name: Install package
7070
run: |

docs/Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS ?=
7-
SPHINXBUILD ?= sphinx-autobuild
6+
SPHINXOPTS ?= -W --keep-going -n
7+
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = source
99
BUILDDIR = build
10-
PORT ?= 8000
11-
HOST ?= 127.0.0.1
1210

1311
# Put it first so that "make" without argument is like "make help".
1412
help:
@@ -18,7 +16,7 @@ help:
1816

1917
# Build the API documentation using sphinx
2018
html:
21-
PYTHONPATH=.. $(SPHINXBUILD) --port $(PORT) --host $(HOST) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
19+
PYTHONPATH=.. $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2220

2321
# Build multiple versions
2422
html_versions:

tools/build_docs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ docker run -u $(id -u):$(id -g) \
1111
-v /tmp/.cache/fontconfig:/.cache/fontconfig \
1212
-e MPLCONFIGDIR=/tmp/.cache/matplotlib \
1313
-w /app \
14-
--env HOST=0.0.0.0 \
15-
--env PORT=8000 \
14+
--env SPHINXBUILD="sphinx-autobuild" \
15+
--env SPHINXOPTS="-W --keep-going -n --port 8000 --host 0.0.0.0" \
1616
-it cebra-docs \
1717
make docs

0 commit comments

Comments
 (0)