summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-10 15:48:19 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-08-10 15:52:52 +0900
commitd1e8814e040f689d85b8fd5b00f20c8fe4f0aeb3 (patch)
treef043c3a791015b783b0cad8609c9bf1ff2c799ad /scripts
parent501a1ec16afff5e8fe5317f5a7949791ca97f211 (diff)
add creation of singlehtml for downloadable docs
Change-Id: I4e7b188f43d69866fa5f42b4393e92f91cd795a2 JIRA: DOCS-156 Co-Authored-By: Aric Gardner <agardner@linuxfoundation.org> Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/docs-build.sh12
1 files changed, 12 insertions, 0 deletions
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.