summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLuca Muscariello <muscariello@ieee.org>2020-02-12 13:49:52 +0100
committerLuca Muscariello <muscariello@ieee.org>2020-02-12 17:51:13 +0100
commit56e29ea01914681f394e3a0af4169936079858a7 (patch)
tree2b364c9da3a44637e9e2ba87b7009424ad8b192b /scripts
parent202c6bc2788c943b15026c24900c321b9bbeed3c (diff)
[HICN-512] documentation bundle using sphinx
Change-Id: I1dcbca50f7406ef2714683547b6bb32463e1baf8 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
Diffstat (limited to 'scripts')
-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