openstack-manuals/tools/build-user-guides.sh
Andreas Jaeger a8224a68b5 Add RST Glossary
Automatically convert the glossary from DocBook XML to RST with each
build and use it for building the RST guides.

Add the glossary to User Guides and Networking Guide.

Use glossary in User Guides in places where it was used before. This
removes one TODO.

Fix CORS capitalization.

Partial-Bug: #1421813
Change-Id: I3fba6d54b01759f39f8e1467a7606cdbd2dd0165
2015-04-14 19:57:35 +00:00

18 lines
721 B
Bash
Executable File

#!/bin/sh -e
echo "Generating Glossary"
echo "==================="
tools/glossary2rst.py doc/user-guides/source/glossary.rst
echo "Done."
echo ""
echo "Building End User Guide"
echo "======================="
sphinx-build -t user_only -E -W doc/user-guides/source/ doc/user-guides/build/html
echo "Building Admin User Guide"
echo "========================="
sphinx-build -t admin_only -E -W doc/user-guides/source/ doc/user-guides/build-admin/html
# Cleanup: Rename index-html to index everywhere
mv doc/user-guides/build-admin/html/index-admin.html doc/user-guides/build-admin/html/index.html
sed -i -e 's/index-admin.html/index.html/g' doc/user-guides/build-admin/html/*.html doc/user-guides/build-admin/html/*/*.html