Copy RST files to ha-guide and api-site
Copy glossary.rst and app_support.rst to ha-guide and firstApp. Change-Id: I265d3c7d0203af2ba4f6b0442f65be7a03f0bd2d Depends-On: I7c40ccb80d77e7a6fd763b778945ee0869b7e1c0 Depends-On: If4e11a4f90d580876865348e0d88b92cec4b6659
This commit is contained in:
parent
b932cfeccc
commit
d1f0536476
@ -1,3 +1,4 @@
|
||||
openstack/api-site
|
||||
openstack/ha-guide
|
||||
openstack/operations-guide
|
||||
openstack/security-doc
|
||||
|
@ -19,8 +19,24 @@ if [ -z "$PROJECT_DIR" ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
function copy_rst {
|
||||
target=$1
|
||||
# Copy over some RST files
|
||||
mkdir -p $target
|
||||
tools/glossary2rst.py $PROJECT_DIR/$target
|
||||
|
||||
for filename in doc/users-guides/source/common/app_support.rst; do
|
||||
cp $filename $PROJECT_DIR/$target
|
||||
done
|
||||
(cd $PROJECT_DIR; git add $target)
|
||||
}
|
||||
|
||||
case "$PROJECT_DIR" in
|
||||
api-site)
|
||||
copy_rst firstapp/source/imported/
|
||||
;;
|
||||
ha-guide)
|
||||
copy_rst doc/ha-guide/source/imported
|
||||
GLOSSARY_SUB_DIR="doc/glossary"
|
||||
ENT_DIR="high-availability-guide"
|
||||
CHECK_MARK_DIR="figures"
|
||||
@ -40,6 +56,8 @@ case "$PROJECT_DIR" in
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$PROJECT" != "api-site" ]] ; then
|
||||
GLOSSARY_DIR="$PROJECT_DIR/$GLOSSARY_SUB_DIR"
|
||||
|
||||
cp doc/glossary/glossary-terms.xml $GLOSSARY_DIR/
|
||||
@ -60,3 +78,4 @@ sed -i -e "s|imagedata fileref=\"../common/figures|imagedata fileref=\"$CHECK_MA
|
||||
# Add files
|
||||
(cd $PROJECT_DIR; git add $GLOSSARY_SUB_DIR \
|
||||
$GLOSSARY_SUB_DIR/../$ENT_DIR/openstack.ent)
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user