aboutsummaryrefslogtreecommitdiffstats
path: root/docs/scripts/sphinx-make.sh
diff options
context:
space:
mode:
authorjdenisco <jdenisco@cisco.com>2018-09-24 14:59:33 -0400
committerDamjan Marion <dmarion@me.com>2018-09-24 21:37:00 +0000
commit3138d723091234a3534baa8b1bbaad31df6fb8d6 (patch)
tree6d739fda1349dd98cdb6d0ef54743015b97c3fd0 /docs/scripts/sphinx-make.sh
parentedb3a9bca826ddaaf5f3c7ee83f9e474bd2a2e11 (diff)
Add the sphinx docs build options
Change-Id: If7ac5b41ca4ac602a100b616b37d07f658fd6a90 Signed-off-by: jdenisco <jdenisco@cisco.com>
Diffstat (limited to 'docs/scripts/sphinx-make.sh')
-rwxr-xr-xdocs/scripts/sphinx-make.sh14
1 files changed, 14 insertions, 0 deletions
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