From 5bb36011bc73b46ddbe4da829e609840b6239571 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 2 Jan 2019 10:21:09 +0100 Subject: [PATCH] Build translated docs openstackdocstheme 1.28.0 includes a script to build English and translated documents together, use this for building docs. Require the new openstackdocstheme version. Change-Id: If4102ec42ee7f58cff5da46ee326833471520412 --- doc/source/conf.py | 3 +++ test-requirements.txt | 2 +- tox.ini | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 263c859..f4277c9 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -84,3 +84,6 @@ latex_documents = [ # Example configuration for intersphinx: refer to the Python standard library. #intersphinx_mapping = {'http://docs.python.org/': None} + +# -- Options for Internationalization output ------------------------------ +locale_dirs = ['locale/'] diff --git a/test-requirements.txt b/test-requirements.txt index 271e7eb..844de50 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,5 +3,5 @@ # process, which may cause wedges in the gate later. sphinx>=1.6.2 # BSD -openstackdocstheme>=1.11.0 # Apache-2.0 +openstackdocstheme>=1.28.0 # Apache-2.0 doc8>=0.6.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 9f14297..6f35361 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,7 @@ commands = {posargs} commands = doc8 -v doc README.rst [testenv:docs] -commands = sphinx-build -E -W -b html -d doc/build/doctrees doc/source doc/build/html +commands = docstheme-build-translated.sh [doc8] # Settings for doc8: