vpp/docs/scripts/sphinx-make.sh
jdenisco 3138d72309 Add the sphinx docs build options
Change-Id: If7ac5b41ca4ac602a100b616b37d07f658fd6a90
Signed-off-by: jdenisco <jdenisco@cisco.com>
2018-09-24 21:37:00 +00:00

15 lines
284 B
Bash
Executable File

#!/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