Merge "Enable building of translated manuals"

This commit is contained in:
Jenkins 2014-04-28 06:34:03 +00:00 committed by Gerrit Code Review
commit c9c83afbb0
3 changed files with 23 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
publish-docs/
target/
/build-*.log.gz
/generated
# Packages
*.egg

6
tools/copy_pom Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
TARGET=$1
echo "copying pom.xml for $TARGET"
cp pom.xml generated/$TARGET/pom.xml

16
tox.ini
View File

@ -40,3 +40,19 @@ commands =
openstack-doc-test --check-build --publish --only-book api-ref --only-book api-ref-guides
# We need to move api-ref-guides to the proper place:
mv publish-docs/api-ref-guides publish-docs/api-ref/
[testenv:buildlang]
# Run as "tox -e buildlang -- $LANG"
# openstack-generate-docbook needs xml2po which cannot be installed
# in the venv. Since it's installed in the system, let's
# use sitepackages.
# For now this only builds api-quick-start
sitepackages=True
whitelist_externals = bash
commands =
openstack-generate-docbook -l {posargs} -b api-quick-start -r ./
# tox 1.7 does not parse the following line:
# cp doc/pom.xml generated/{posargs}/pom.xml
# Thus replaced by the next one:
bash ./tools/copy_pom {posargs}
openstack-doc-test --check-build --publish -l {posargs} --only-book api-quick-start