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 tstrait
PYPATH=${PWD}/..
TSTRAIT_VERSION:=$(shell PYTHONPATH=${PYPATH} \
python3 -c 'import tstrait; print(tstrait.__version__.split("+")[0])')

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

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

clean:
rm -fR _build
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sphinx:
logo:
text: |
tstrait<br/>
version __TSTRAIT_VERSION__
version __PKG_VERSION__
myst_enable_extensions:
- colon_fence
- deflist
Expand Down
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