#### THIS IS NOT PUBLISHED #### CHECK LICENSE: IS THIS FREE??? SHELL = /bin/bash REPOSITORY = https://github.com/mila-iqia/mila-docs.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/mila-docs else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository # This repo doesn't have any tags, therefore we checkout specific commits. # The date is the commit's date. 2023-11-15-e0d16646: check_env_vars venv repository # Extract hash id commit_hash=$@ commit_hash=$${commit_hash:11} mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout $${commit_hash} pip install -r docs/requirements.txt cd docs make dirhtml cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: