Files
Clement Tsang 4d34265971 docs: add nightly release redirect hook (#1928)
* docs: update copyright year

* docs: add nightly release redirect

* trigger docs in nightly

* workflow_call

* chmod

* fix for potential time delay?

* fix post release too

* prune runs that ran today too

* update docs
2025-12-25 19:57:38 -05:00

23 lines
521 B
Bash
Executable File

#!/bin/bash
set -e
VENV_PATH="./.venv/"
PYTHON_CMD=${1:-python}
if [ ! -d $VENV_PATH ]; then
echo "venv not found, creating one using the command '${PYTHON_CMD}'...";
$PYTHON_CMD -m venv .venv;
source $VENV_PATH/bin/activate;
pip install --upgrade pip;
pip install -r requirements.txt;
$VENV_PATH/bin/mkdocs serve;
else
echo "venv already found.";
source $VENV_PATH/bin/activate;
pip install --upgrade pip;
pip install -r requirements.txt;
$VENV_PATH/bin/mkdocs serve;
fi;