From 9ac3590de737939936b900aa4f68de284c456dd2 Mon Sep 17 00:00:00 2001 From: Pranav Salunke Date: Wed, 1 Apr 2015 10:38:06 +0200 Subject: [PATCH] Adds upstream training to OpenStack gate Update the current gate 'slides' to build and publish upstream training content. This patch does the following changes. * Adds generateslides script to use sphinx/hieroglyph to build slides * Updates tox.ini to use generateslides script * Update .gitignore to ignore _build/ directory which is the default folder for generated output generated by sphix. Hence forth, any changes to the upstream training rst slides will be gated and published, also it is essential to note that these jobs are new and may not be accurate or reliable to address all the errors in the rst slides. Change-Id: I8a220dd31501f9b3733a6282d7048fe283d2a0d1 --- .gitignore | 1 + tools/generateslides | 7 +++++++ tox.ini | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 tools/generateslides diff --git a/.gitignore b/.gitignore index 83b66ae0..61922592 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ publish-docs/ generated/ /build-*.log.gz build/ +_build/ # Ignore Vagrant Related Files acceptance_config.yml diff --git a/tools/generateslides b/tools/generateslides new file mode 100755 index 00000000..f5e48897 --- /dev/null +++ b/tools/generateslides @@ -0,0 +1,7 @@ +#!/bin/bash +# Used by tox.ini when checking build and publishing docs to website + +# Generate and publish upstream training slides + +mkdir -p publish-docs/trunk/training-guides/upstream-training/ +sphinx-build -b slides doc/upstream-training/source/ publish-docs/trunk/training-guides/upstream-training/ diff --git a/tox.ini b/tox.ini index 13f948bb..53a88e3a 100644 --- a/tox.ini +++ b/tox.ini @@ -28,12 +28,12 @@ commands = mkdir -p publish-docs/trunk/training-guides # Build training labs scripts bash {toxinidir}/tools/generatelabs + bash {toxinidir}/tools/generateslides [doc8] # Settings for doc8: # File extensions to use extension = .rst,.txt -# Directories/files to ignore ignore-path = doc/*/build/* [testenv:upstream-slides]