From b84857108cea921f101217459ad740c955e535b7 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 7 Mar 2015 19:48:01 +0100 Subject: [PATCH] Build translated RST manuals Build translated RST manuals. This needs openstack-doc-tools 0.26 release, thus bumped up requirements. Import also Japanese User Guides translations so that this can be tested. We only create an empty file for it, this will trigger the import and enable us testing of the toolchain. Ignore some build results. Change-Id: Ic51974445730cbfa886beb7cfd4fcf71977dab3c --- .gitignore | 2 ++ doc-tools-check-languages.conf | 10 +++++++--- .../source/locale/ja/LC_MESSAGES/user-guides.po | 1 + test-requirements.txt | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 doc/user-guides/source/locale/ja/LC_MESSAGES/user-guides.po diff --git a/.gitignore b/.gitignore index cc2ecab379..30b9533ac9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,9 +8,11 @@ target/ /www/output/ /generated/ /doc/user-guides/build-admin/ +.doctrees build/ /build-*.log.gz glossary.rst +*.mo # Python compiled files *.pyc diff --git a/doc-tools-check-languages.conf b/doc-tools-check-languages.conf index b7c657d0c7..86b52ccf63 100644 --- a/doc-tools-check-languages.conf +++ b/doc-tools-check-languages.conf @@ -9,7 +9,7 @@ declare -A DIRECTORIES=( # books to be built declare -A BOOKS=( ["fr"]="image-guide" - ["ja"]="image-guide install-guide" + ["ja"]="image-guide install-guide user-guides" ["pt_BR"]="install-guide" ["zh_CN"]="arch-design image-guide install-guide" ) @@ -21,10 +21,14 @@ POM_FILE="doc/pom.xml" # Location of doc dir DOC_DIR="doc/" +# Draft books +declare -A DRAFTS=( + ["ja"]="user-guides" +) + # Books with special handling # Values need to match content in project-config/jenkins/scripts/common_translation_update.sh -declare -A SPECIAL_BOOKS -SPECIAL_BOOKS=( +declare -A SPECIAL_BOOKS=( ["user-guides"]="RST" ["networking-guide"]="RST" ) diff --git a/doc/user-guides/source/locale/ja/LC_MESSAGES/user-guides.po b/doc/user-guides/source/locale/ja/LC_MESSAGES/user-guides.po new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/doc/user-guides/source/locale/ja/LC_MESSAGES/user-guides.po @@ -0,0 +1 @@ + diff --git a/test-requirements.txt b/test-requirements.txt index 980cc2e532..ed3b11fcae 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,7 +8,7 @@ hacking>=0.10.0,<0.11 beautifulsoup4 Jinja2>=2.6 # BSD License (3 clause) -openstack-doc-tools>=0.25 +openstack-doc-tools>=0.26 sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 openstackdocstheme>=1.0.7 doc8 # Apache-2.0