Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@

# Need to set PYTHONPATH so that we pick up the local msprime
PYPATH=${PWD}/..
MSP_VERSION:=$(shell PYTHONPATH=${PYPATH} \
python3 -c 'import msprime; print(msprime.__version__.split("+")[0])')

dev:
PYTHONPATH=${PYPATH} ./build.sh

dist:
@echo Building distribution for msprime version ${MSP_VERSION}
sed -i s/__MSPRIME_VERSION__/${MSP_VERSION}/g _config.yml
PYTHONPATH=${PYPATH} ./build.sh
all:
./build.sh

clean:
rm -fR _build
4 changes: 2 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sphinx:
navigation_with_keys: false
pygments_dark_style: monokai
logo:
text: "Version __MSPRIME_VERSION__"
text: "Version __PKG_VERSION__"
myst_enable_extensions:
- colon_fence
- deflist
Expand Down Expand Up @@ -70,4 +70,4 @@ sphinx:
autodoc_typehints: none

myst_substitutions:
min_python_version: "3.10"
min_python_version: "3.11"
2 changes: 1 addition & 1 deletion docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

REPORTDIR=_build/html/reports

jupyter-book build -nW --keep-going .
uv run --project=.. --group docs jupyter-book build . -vnW --keep-going
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
if [ -e $REPORTDIR ]; then
Expand Down