summaryrefslogtreecommitdiffstats
path: root/jjb/genesis/build-docu.sh
diff options
context:
space:
mode:
authorVictor Laza <vlaza@cloudbasesolutions.com>2015-04-08 21:21:57 +0300
committerVictor Laza <vlaza@cloudbasesolutions.com>2015-04-08 21:44:44 +0300
commit6dfd9796eb5cccce50ea257e9c0de4a8f33d99b2 (patch)
tree786c12a4792b2a8b10d39bd8b4f1a3ad45550ea0 /jjb/genesis/build-docu.sh
parent6874ccaa77032c9530cf62c3056111c502135104 (diff)
JIRA: DOCU-2 - Adding a job to build genesis documentation from .rst files
This job will use shell to build documentation for genesis project Change-Id: I143773f902bb33bbd58045415fa52cd3a14a7fa9 Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
Diffstat (limited to 'jjb/genesis/build-docu.sh')
-rw-r--r--jjb/genesis/build-docu.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/jjb/genesis/build-docu.sh b/jjb/genesis/build-docu.sh
new file mode 100644
index 000000000..680686eb6
--- /dev/null
+++ b/jjb/genesis/build-docu.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+for file in $(find . -type f -iname '*.rst'); do
+ file_cut="${file%.*}"
+ html_file=$file_cut".html"
+ pdf_file=$file_cut".pdf"
+ rst2html $file > $html_file
+ rst2pdf $file -o $pdf_file
+done