From 695b73a08b1c70914071208a7952a5ed02082901 Mon Sep 17 00:00:00 2001
From: Boden R <bodenvmw@gmail.com>
Date: Wed, 3 Jan 2018 09:14:45 -0700
Subject: [PATCH] fix linkcheck tox target

The current linkcheck tox target fails on a fresh neutron-lib clone
due to the /modules not existing under doc/source/reference. This patch
fixes the issue by ensuring the modules are generated before running
the linkcheck target.

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

diff --git a/tox.ini b/tox.ini
index 370cb7e56..319c97af7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -47,6 +47,7 @@ commands =
   rm -rf api-ref/build
   sphinx-build -W -b linkcheck api-ref/source api-ref/build/linkcheck
   rm -rf doc/build
+  python setup.py build_sphinx
   sphinx-build -W -b linkcheck doc/source doc/build/linkcheck
 
 [testenv:debug]