ID: 6fe64d0788c599f24e1702d6c730dcba2be392af
45 lines
—
961B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/getpelican/pelican.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/pelican
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
4.7.2 4.8.0 4.9.0 4.9.1: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements/docs.pip
pip install .
cd docs
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
4.5.4 4.6.0: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements/docs.pip
# Lock version because it won't compile otherwise
pip install "jinja2 == 3" "sphinx < 6"
pip install .
cd docs
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|