CSIT-474: CSIT documentation auto generation 75/4175/2
authorTibor Frank <tifrank@cisco.com>
Thu, 8 Dec 2016 12:05:26 +0000 (13:05 +0100)
committerPeter Mikus <pmikus@cisco.com>
Mon, 12 Dec 2016 06:31:15 +0000 (06:31 +0000)
- Remove env dirs from built doc
- Create tar.gz file from built doc

Change-Id: Ic5e5eb339058783b0e88296f332988a70ab6189e
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/doc_gen/run_doc.sh

index bbb9940..1a03707 100755 (executable)
@@ -42,4 +42,9 @@ export PYTHONPATH=`pwd`
 ./gen_rst.py
 
 # Generate the documentation:
-sphinx-build -vvv -b html ${WORKING_DIR}/ ${BUILD_DIR}/
\ No newline at end of file
+sphinx-build -vvv -b html ${WORKING_DIR}/ ${BUILD_DIR}/
+
+find . -type d -name 'env' | xargs rm -rf
+
+echo Creating csit.doc.tar.gz ...
+tar -czvf ./csit.doc.tar.gz ${BUILD_DIR}

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.