Skip to content

Commit 39277ae

Browse files
Update to use docs build
Update the docs helper makefile to use uv
1 parent c4a92e1 commit 39277ae

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

.github/workflows/docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ env:
1111
FORCE_COLOR: 1
1212

1313
jobs:
14-
docs:
15-
uses: tskit-dev/.github/.github/workflows/docs.yml@v6
14+
Docs:
15+
uses: tskit-dev/.github/.github/workflows/docs.yml@main
1616
with:
1717
pyproject-directory: python
18+
doxygen-directory: docs/doxygen

docs/Makefile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
2-
# Need to set PYTHONPATH so that we pick up the local tskit
3-
PYPATH=$(shell pwd)/../python/
4-
TSK_VERSION:=$(shell PYTHONPATH=${PYPATH} \
5-
python -c 'import tskit; print(tskit.__version__.split("+")[0])')
6-
71
BUILDDIR = _build
82
DOXYGEN_XML=doxygen/xml
93

@@ -13,13 +7,7 @@ ${DOXYGEN_XML}: ../c/tskit/*.h
137
cd doxygen && doxygen
148

159
dev:
16-
PYTHONPATH=${PYPATH} ./build.sh
17-
18-
dist:
19-
@echo Building distribution for tskit version ${TSK_VERSION}
20-
cd doxygen && doxygen
21-
sed -i -e s/__TSKIT_VERSION__/${TSK_VERSION}/g _config.yml
22-
PYTHONPATH=${PYPATH} ./build.sh
10+
uv --project=../python run jupyter-book build -Wn --keep-going .
2311

2412
clean:
2513
rm -fR $(BUILDDIR) $(DOXYGEN_XML)

0 commit comments

Comments
 (0)