openstack-manuals/tools/test.sh
Doug Hellmann 0d07be764f add flag to www-generator to look for links to enable
Add --check-all-links option to www-generator.py and have it report a
warning for links that do exist for a project but that are not enabled
in the project data file. This can be used to update that data file to
turn on flags and link to additional documentation.

Change-Id: I7941c6fd8ef53c37bd309542d5938699fa6fb475
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-11 20:05:06 +00:00

12 lines
378 B
Bash
Executable File

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