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