From 3138d723091234a3534baa8b1bbaad31df6fb8d6 Mon Sep 17 00:00:00 2001 From: jdenisco Date: Mon, 24 Sep 2018 14:59:33 -0400 Subject: Add the sphinx docs build options Change-Id: If7ac5b41ca4ac602a100b616b37d07f658fd6a90 Signed-off-by: jdenisco --- docs/scripts/sphinx-make.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 docs/scripts/sphinx-make.sh (limited to 'docs/scripts') diff --git a/docs/scripts/sphinx-make.sh b/docs/scripts/sphinx-make.sh new file mode 100755 index 00000000000..e95b3eba066 --- /dev/null +++ b/docs/scripts/sphinx-make.sh @@ -0,0 +1,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 -- cgit 1.2.3-korg