From 9160bc9aa1e39876db56e7ffff061271a959df5f Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 10 Oct 2015 09:05:56 +0200 Subject: [PATCH] API Quick Start Translations Setup Japanese API Quick Start for building and checking. Markup German not anymore as draft. Do not publish content anymore on docs.openstack.org, our jobs are going to use publishlang-api to publish on developer.openstack.org instead. Change-Id: I67d777a6c271fc8dc1ebe3e75b81a09e7c5c3efb --- doc-tools-check-languages.conf | 4 +++- tox.ini | 11 +++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/doc-tools-check-languages.conf b/doc-tools-check-languages.conf index cbaf9198e..59a281368 100644 --- a/doc-tools-check-languages.conf +++ b/doc-tools-check-languages.conf @@ -21,13 +21,15 @@ declare -A BOOKS=( # See comment at start of file and update tox.ini as well if you # change anything here. ["de"]="api-quick-start" + ["ja"]="api-quick-start" ) # draft books declare -A DRAFTS=( # See comment at start of file and update tox.ini as well if you # change anything here. - ["de"]="api-quick-start" + # Example: + #["de"]="api-quick-start" ) # Where does the top-level pom live? diff --git a/tox.ini b/tox.ini index 1a411cab1..c950b0264 100644 --- a/tox.ini +++ b/tox.ini @@ -85,9 +85,10 @@ commands = doc-tools-check-languages doc-tools-check-languages.conf test {posarg # openstack-generate-docbook needs xml2po which cannot be installed # in the venv. Since it's installed in the system, let's # use sitepackages. +# NOTE(jaegerandi): Remove this as soon as job has been removed. sitepackages=True -whitelist_externals = doc-tools-check-languages -commands = doc-tools-check-languages doc-tools-check-languages.conf publish all +# Do nothing for now +commands = true [testenv:publishlang-api] # openstack-generate-docbook needs xml2po which cannot be installed @@ -107,8 +108,10 @@ commands = # developer.openstack.org/LANG/api-guide/quick-start or # developer.openstack.org/draft/LANG/api-guide/quick-start. mkdir -p publish-docs/api-ref - mkdir -p publish-docs/api-ref/draft/de/api-guide - mv publish-docs/draft/de/api-quick-start/ publish-docs/api-ref/draft/de/api-guide/quick-start + mkdir -p publish-docs/api-ref/de/api-guide + mkdir -p publish-docs/api-ref/ja/api-guide + mv publish-docs/de/api-quick-start/ publish-docs/api-ref/de/api-guide/quick-start + mv publish-docs/ja/api-quick-start/ publish-docs/api-ref/ja/api-guide/quick-start [testenv:generatepot-rst] # Generate POT files for translation, needs {posargs} like: