diff options
author | 2015-04-08 15:05:07 +0300 | |
---|---|---|
committer | 2015-04-08 17:53:53 +0300 | |
commit | bb53ad031cefd54b306e04cf1f4690acd4e9e4f2 (patch) | |
tree | f4f8dbfbca0db32682a2e72f4feb6264d0e4d40d /jjb/opnfvdocs/build-docu.sh | |
parent | 0081e4ddd0bf021dcfe7705799b0143371caf677 (diff) |
JIRA: DOCU-2 - Adding a job to build documentation from .rst files
This job will use shell to build documentation on Spirent's lab slave
that has docutils installed
Change-Id: I3a049b3e4a70e77f3449f5f9b38b8a52a4b55fac
Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
Diffstat (limited to 'jjb/opnfvdocs/build-docu.sh')
-rw-r--r-- | jjb/opnfvdocs/build-docu.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jjb/opnfvdocs/build-docu.sh b/jjb/opnfvdocs/build-docu.sh new file mode 100644 index 000000000..1ea9d0eeb --- /dev/null +++ b/jjb/opnfvdocs/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 |