Debian Codegraph @

docs/mike.sh

raw symbols SCIP
1 #!/bin/bash
2
3 # Used to serve a versioned version of the docs locally. Note this
4 # does NOT reflect local changes.
5
6 set -e
7
8 VENV_PATH="./.venv/"
9 PYTHON_CMD=${1:-python}
10
11 if [ ! -d $VENV_PATH ]; then
12 echo "venv not found, creating one using the command '${PYTHON_CMD}'...";
13 $PYTHON_CMD -m venv .venv;
14 source $VENV_PATH/bin/activate;
15 pip install --upgrade pip;
16 pip install -r requirements.txt;
17 $VENV_PATH/bin/mike serve;
18 else
19 echo "venv already found.";
20 source $VENV_PATH/bin/activate;
21 pip install --upgrade pip;
22 pip install -r requirements.txt;
23 $VENV_PATH/bin/mike serve;
24 fi;
25