mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-03 13:30:44 +00:00
8add5183ad
* docs: try and add notification for nightly version * hmmm * hmmmm * I forgot to run the banner * fix spacing * some more comments * fmt
26 lines
619 B
Bash
Executable File
26 lines
619 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Used to serve a versioned version of the docs locally. Note this
|
|
# does NOT reflect local changes.
|
|
|
|
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/mike serve;
|
|
else
|
|
echo "venv already found.";
|
|
source $VENV_PATH/bin/activate;
|
|
pip install --upgrade pip;
|
|
pip install -r requirements.txt;
|
|
$VENV_PATH/bin/mike serve;
|
|
fi;
|
|
|