Merge "Enable building of translated manuals"
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,6 +5,7 @@
|
|||||||
publish-docs/
|
publish-docs/
|
||||||
target/
|
target/
|
||||||
/build-*.log.gz
|
/build-*.log.gz
|
||||||
|
/generated
|
||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
*.egg
|
*.egg
|
||||||
|
6
tools/copy_pom
Executable file
6
tools/copy_pom
Executable 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
16
tox.ini
@@ -40,3 +40,19 @@ commands =
|
|||||||
openstack-doc-test --check-build --publish --only-book api-ref --only-book api-ref-guides
|
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:
|
# We need to move api-ref-guides to the proper place:
|
||||||
mv publish-docs/api-ref-guides publish-docs/api-ref/
|
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
|
||||||
|
Reference in New Issue
Block a user