From 08b31a9c1836352b6bb7577adc8a98352c3c5b6e Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 8 Oct 2015 19:30:11 +0200 Subject: [PATCH] tox: add a generic environment to build a RST guide With this environment it is possible to build a single RST guide with the following common: tox -e build -- NAME E.g. to build the contributor guide run the following command: tox -e build -- contributor-guide Change-Id: I94cf504eece14b2b8d2734cb5b4c16a1b409026f --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index 354e589179..97cf5e54dc 100644 --- a/tox.ini +++ b/tox.ini @@ -68,6 +68,14 @@ commands = commands = {toxinidir}/tools/build-install-guides-rst.sh ubuntu +[testenv:build] +commands = + {toxinidir}/tools/build-rst.sh \ + doc/{posargs} \ + --glossary \ + --build build \ + --target {posargs} + [testenv:publishdocs] # Prepare all documents (except www subdir) so that they can get # published on docs.openstack.org with just copying publish-docs/*