Debian Codegraph @

docs/mike.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/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 [scip-shell system . . `[`. ! -d $VENV_PATH ]; then
12 echoscip-shell system . . echo. "venv not found, creating one using the command '${PYTHON_CMD}'...";
13 $PYTHON_CMD -m venv .venv;
14 source $VENV_PATH/bin/activate;
15 pipscip-shell system . . pip. install --upgrade pip;
16 pipscip-shell system . . pip. install -r requirements.txt;
17 $VENV_PATH/bin/mike serve;
18 else
19 echoscip-shell system . . echo. "venv already found.";
20 source $VENV_PATH/bin/activate;
21 pipscip-shell system . . pip. install --upgrade pip;
22 pipscip-shell system . . pip. install -r requirements.txt;
23 $VENV_PATH/bin/mike serve;
24 fi;
25