5de719a92a
The content of this book is mostly autogenerated from the heat source code using the generate-reference.sh script and openstack-doc-tools>=0.18. Implements: blueprint heat-templates Change-Id: Ia00ec6debdab3fe6038683aad01b025a9ff6702b
31 lines
530 B
Bash
Executable File
31 lines
530 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# Generates the HOT reference from the heat repository
|
|
|
|
usage() {
|
|
echo "$0 HEAT_DIR"
|
|
}
|
|
|
|
HEAT_DIR=$1
|
|
|
|
if [ -z "$1" ]; then
|
|
usage
|
|
exit 1
|
|
fi
|
|
|
|
# generate the doc in the heat directory
|
|
(
|
|
cd $HEAT_DIR
|
|
tox -edocs
|
|
. .tox/docs/bin/activate
|
|
make -C doc xml
|
|
)
|
|
|
|
SOURCES="cfn functions openstack"
|
|
TARGET=$(dirname $(readlink -f $0))/../doc/hot-reference/generated
|
|
|
|
for source in $SOURCES; do
|
|
openstack-dn2osdbk $HEAT_DIR/doc/build/xml/template_guide/$source.xml \
|
|
$TARGET/$source.xml
|
|
done
|