From: Ryota MIBU Date: Wed, 10 Aug 2016 06:48:19 +0000 (+0900) Subject: add creation of singlehtml for downloadable docs X-Git-Tag: colorado.1.0~17 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=d1e8814e040f689d85b8fd5b00f20c8fe4f0aeb3;p=opnfvdocs.git add creation of singlehtml for downloadable docs Change-Id: I4e7b188f43d69866fa5f42b4393e92f91cd795a2 JIRA: DOCS-156 Co-Authored-By: Aric Gardner Signed-off-by: Ryota MIBU --- diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh index 043fd1b94..74144ff55 100755 --- a/scripts/docs-build.sh +++ b/scripts/docs-build.sh @@ -220,6 +220,18 @@ do sphinx-build -b html -t html -E "$src" "$output" + { + sphinx-build -b singlehtml -t singlehtml -E "$src" "${output}-single" + } || { + msg="Error: Single HTML creation for $dir has failed." + echo + echo "$msg" + echo + if [ -n "$GERRIT_COMMENT" ]; then + echo "$msg" >> "$GERRIT_COMMENT" + fi + } + # Note: PDF creation may fail in project doc builds. # We allow this build job to be marked as succeeded with # failure in PDF creation, but leave message to fix it.