diff options
author | 2015-04-08 20:14:54 +0300 | |
---|---|---|
committer | 2015-04-08 20:14:54 +0300 | |
commit | 41e14314400339743eef2c2ed4596c62c824306e (patch) | |
tree | bacb9f69056a3d611cb0427891501e1512aab799 /jjb/functest/build-docu.sh | |
parent | bb53ad031cefd54b306e04cf1f4690acd4e9e4f2 (diff) |
JIRA: DOCU-2 - Adding a job to build functest documentation from .rst files
This job will use shell to build documentation for functest project
Change-Id: I4db9391aac119e3cba2e87d454159b89b6c049d9
Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
Diffstat (limited to 'jjb/functest/build-docu.sh')
-rw-r--r-- | jjb/functest/build-docu.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jjb/functest/build-docu.sh b/jjb/functest/build-docu.sh new file mode 100644 index 000000000..680686eb6 --- /dev/null +++ b/jjb/functest/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 |