From e51c5c9d41d340c705625c7d391ff92f0a4a8d85 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 16 May 2015 20:30:25 +0200 Subject: [PATCH] Fix checkbuild index Fix a problem with the move to publishdocs where the web pages were copied to the wrong location for checkbuild. We previously copied these differently for checking and publishing and need to do this again. Change-Id: Ibb95a3a15e76913efff52f44eacb8a23c20768f7 --- tools/publishdocs.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/publishdocs.sh b/tools/publishdocs.sh index 47fbf37857..9e6dfe751a 100755 --- a/tools/publishdocs.sh +++ b/tools/publishdocs.sh @@ -50,9 +50,18 @@ done # Build the www pages so that openstack-doc-test creates a link to # www/www-index.html. -python tools/www-generator.py --source-directory www/ --output-directory publish-docs/ -rsync -a www/static/ publish-docs/ +if [ "$PUBLISH" = "build" ] ; then + python tools/www-generator.py --source-directory www/ \ + --output-directory publish-docs/www/ + rsync -a www/static/ publish-docs/www/ + # publish-docs/www-index.html is the trigger for openstack-doc-test + # to include the file. + mv publish-docs/www/www-index.html publish-docs/www-index.html +fi if [ "$PUBLISH" = "publish" ] ; then + python tools/www-generator.py --source-directory www/ \ + --output-directory publish-docs + rsync -a www/static/ publish-docs/ # Don't publish this file rm publish-docs/www-index.html fi