mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-03 13:30:44 +00:00
4d34265971
* 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
23 lines
521 B
Bash
Executable File
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;
|
|
|