From b7048784b1bb152e69ab195dfa76c1e7a376b1f7 Mon Sep 17 00:00:00 2001
From: junboli <junbo85.li@gmail.com>
Date: Wed, 25 Oct 2017 14:28:31 +0800
Subject: [PATCH] Remove doc/build before running docs job

Clear doc/build directory before running docs job may better guarantee
each building output the newest docs.

Change-Id: I17537742a4c1421f2bd0561d2c48c5ae56d89026
---
 tox.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index ca9f183cf0f..4a58263588e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -105,7 +105,7 @@ commands = {posargs}
 
 [testenv:docs]
 commands =
-  rm -fr doc/source/contributor/api/ .autogenerated
+  rm -fr doc/build doc/source/contributor/api/ .autogenerated
   python setup.py build_sphinx
   rm -rf api-ref/build
   sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html/