bottom/docs/serve.sh
Clement Tsang 036366274e
docs: bump mike to v2.0.0 (#1318)
* bump mike

* bump some docs

* update some settings and serve script to use mike
2023-11-16 03:17:21 -05:00

20 lines
431 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/bin/activate;
pip install --upgrade pip;
pip install -r requirements.txt;
./venv/bin/mike serve;
else
echo "venv already found.";
source ./venv/bin/activate;
./venv/bin/mike serve;
fi;