ID: b9599db93ad3c541d63d15c68c17eb8d6bdc88c0
55 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/jupyter/jupyter-sphinx.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/jupyter-sphinx
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.8:
export PYENV_VERSION=3.8
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v0.5.3: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .[doc]
cd doc
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive build/dirhtml "${OUTPUT_PATH}/$@"
v0.4.0: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt
cd doc
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive build/dirhtml "${OUTPUT_PATH}/$@"
v0.3.2: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt "jinja2 < 3.1"
cd doc
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|