aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build-packages.sh
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-02-12 17:03:47 +0000
committerGerrit Code Review <gerrit@fd.io>2020-02-12 17:03:47 +0000
commitf9243a2bf823086404be1c41c7bcc1b27cfab7de (patch)
tree83d34905027616eea2d7cf01d42c0f7769a96589 /scripts/build-packages.sh
parent38cc8fb5b1c4d315648a5cc53bb0e874d54f436a (diff)
parent56e29ea01914681f394e3a0af4169936079858a7 (diff)
Merge "[HICN-512] documentation bundle using sphinx"
Diffstat (limited to 'scripts/build-packages.sh')
-rw-r--r--scripts/build-packages.sh25
1 files changed, 24 insertions, 1 deletions
diff --git a/scripts/build-packages.sh b/scripts/build-packages.sh
index 6ec32c0a7..76e76a385 100644
--- a/scripts/build-packages.sh
+++ b/scripts/build-packages.sh
@@ -58,7 +58,8 @@ DEPS_UBUNTU_NOVERSION="libparc-dev \
vpp-plugin-core \
libyang \
sysrepo \
- python3-ply"
+ python3-ply \
+ python3-pip"
DEPS_CMAKE_UBUNTU="curl"
@@ -216,6 +217,28 @@ build_package() {
echo "*******************************************************************"
}
+build_doc() {
+ setup
+
+ echo "*******************************************************************"
+ echo "********************* STARTING DOC BUILD **************************"
+ echo "*******************************************************************"
+
+ # Make the package
+ python3 -m pip install --user virtualenv
+ python3 -m virtualenv env
+ source env/bin/activate
+ pip install -r docs/etc/requirements.txt
+ cd docs
+ make html
+
+ popd
+
+ echo "*******************************************************************"
+ echo "***************** BUILD COMPLETED SUCCESSFULLY *******************"
+ echo "*******************************************************************"
+}
+
build_package
exit 0