Andreas Jaeger 741d59c459 Switch output to publish-docs/html
Publishing to a top-level directory has a few challenges with some new
infra scripts. Let's keep those simple and change from publish-docs to
publish-docs/html.

Depends-On: https://review.opendev.org/676489
Change-Id: I94b7bf915c0fdad0e9e2f5dd81846f45dc99194a
2019-08-15 06:46:46 +02:00

20 lines
560 B
Bash
Executable File

#!/bin/bash -xe
if [[ -d publish-docs/html/www/ ]]; then
output=publish-docs/html/www
else
output=publish-docs/html/
fi
.tox/checkbuild/bin/python tools/www-generator.py --verbose --source-directory www/ \
--output-directory $output $@
if [[ $? -eq 0 ]]; then
rsync -a www/static/ $output
fi
# publish-docs/html/www-index.html is the trigger for openstack-indexpage
# to include the file.
#mv publish-docs/html/www/www-index.html publish-docs/html/www-index.html
.tox/checkbuild/bin/whereto $output/.htaccess $output/redirect-tests.txt