
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
20 lines
560 B
Bash
Executable File
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
|