From 04864cce1fd14187a8b54144496f30757e383189 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 19 Feb 2015 19:17:17 +0100 Subject: [PATCH] Add slides tox environment Add slides tox environment for building RST based slides. This tox environment needs to be enhanced moving forward. For now it includes the doc8 test to test RST and txt files. Also setup doc8 testing. Change-Id: I76e0d235b9ee89c8de8033a7119e34cbcf1f0ddd --- test-requirements.txt | 1 + tox.ini | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/test-requirements.txt b/test-requirements.txt index 6dbc85ae..55b1396a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,3 +2,4 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. openstack-doc-tools>=0.21.1 +doc8 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 20f707d6..991d374f 100644 --- a/tox.ini +++ b/tox.ini @@ -78,3 +78,17 @@ sitepackages=True whitelist_externals = doc-tools-check-languages commands = doc-tools-check-languages doc-tools-check-languages.conf test all +[testenv:slides] +# New RST based environment for building slides +# Note: Resulting files will not be made available anywhere. +commands= + # Niceness test for doc directory + doc8 doc + mkdir -p publish-docs/trunk/training-guides + # Build labs scripts + bash {toxinidir}/tools/generatelabs + +[doc8] +# Settings for doc8: +# File extensions to use +extensions = .rst,.txt