From 546083d1b7c82413973b48ae315dc4dbe1aa0407 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 29 Aug 2016 09:21:25 +0200 Subject: [PATCH] Do not publish doctrees Doctrees are build artefacts thta do not need to be published, place them in separete directories so that they won't get published. Change-Id: I8839f08d2e85ccb751d354be5f48bdfd95b886e2 --- tox.ini | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tox.ini b/tox.ini index 27bef609..04a91a25 100644 --- a/tox.ini +++ b/tox.ini @@ -28,13 +28,13 @@ commands = doc8 doc/upstream-training doc8 doc/training-guides # Build upstream-training slides - sphinx-build -b slides doc/upstream-training/source/ doc/upstream-training/build/slides + sphinx-build -b slides -d doc/upstream-training/build/slides.doctrees doc/upstream-training/source/ doc/upstream-training/build/slides # Build upstream landing page - sphinx-build -b html doc/upstream-training doc/upstream-training/build/slides + sphinx-build -b html -d doc/upstream-training/build/slides.doctrees doc/upstream-training doc/upstream-training/build/slides # Build training-guides slides - sphinx-build -b slides doc/training-guides/associate-guide/ doc/training-guides/build/slides/associate-guide + sphinx-build -b slides -d doc/training-guides/build/slides.doctrees/associate-guide doc/training-guides/associate-guide/ doc/training-guides/build/slides/associate-guide # Build training-guides landing page - sphinx-build -b html doc/training-guides doc/training-guides/build/slides doc/training-guides/index.rst + sphinx-build -b html -d doc/training-guides/build/slides.doctrees doc/training-guides doc/training-guides/build/slides doc/training-guides/index.rst # Publish for check site mkdir -p publish-docs/upstream-training mkdir -p publish-docs/training-guides @@ -44,13 +44,13 @@ commands = [testenv:publishdocs] commands = # Build upstream-training slides - sphinx-build -b slides doc/upstream-training/source/ doc/upstream-training/build/slides + sphinx-build -b slides -d doc/upstream-training/build/slides.doctrees/ doc/upstream-training/source/ doc/upstream-training/build/slides # Build upstream landing page - sphinx-build -b html doc/upstream-training doc/upstream-training/build/slides + sphinx-build -b html -d doc/upstream-training/build/slides.doctrees/ doc/upstream-training doc/upstream-training/build/slides # Build training-guides slides - sphinx-build -b slides doc/training-guides/associate-guide/ doc/training-guides/build/slides/associate-guide + sphinx-build -b slides -d doc/training-guides/build/slides.doctrees/associate-guide doc/training-guides/associate-guide/ doc/training-guides/build/slides/associate-guide # Build training-guides landing page - sphinx-build -b html doc/training-guides doc/training-guides/build/slides doc/training-guides/index.rst + sphinx-build -b html -d doc/training-guides/build/slides.doctrees doc/training-guides doc/training-guides/build/slides doc/training-guides/index.rst # Publish as draft mkdir -p publish-docs/draft/training-guides rsync -av doc/training-guides/build/slides/ publish-docs/draft/training-guides/