openstack-manuals/tools/build-user-guides.sh
Andreas Jaeger 94961a3c3a Simplify RST building
Use a script to build and copy RST guides around instead of duplicating
the same lines every time.

Use script in build-user-guides.sh for now. A follow-up patch shall
change further places.

This script will eventually be moved over to openstack-doc-tools, let's
first evolve it here and check that we cover all use cases.

Change-Id: I753e742bf77b2d6f5acf2f909d62af3dd422832a
2015-05-11 21:08:16 +02:00

10 lines
479 B
Bash
Executable File

#!/bin/sh -e
tools/build-rst.sh doc/user-guides --glossary --tag user_only --build build
# No need to build the glossary again here.
tools/build-rst.sh doc/user-guides --tag admin_only --build build-admin
# 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