aboutsummaryrefslogtreecommitdiffstats
path: root/docs/scripts/sphinx-make.sh
blob: e95b3eba066192549f5de53cf27edbd24712dda1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

if [ "$1" == "venv" ]
then
    python -m pip install --user virtualenv
    python -m virtualenv $VENV_DIR
    source $VENV_DIR/bin/activate;
    pip install -r $DOCS_DIR/etc/requirements.txt
else
    source $VENV_DIR/bin/activate;
    make -C $DOCS_DIR $1
fi

deactivate