From 8f1b0aa52a9956426907f545735836a61ac9d2d5 Mon Sep 17 00:00:00 2001 From: Andrey Volkov Date: Wed, 12 Apr 2017 15:13:23 +0300 Subject: [PATCH] [placement] Fix placement-api-ref check tool Some time ago the placement-api-ref source structure was changed (Ia2fd62ae7f401cad34ee7c2b355c9a5ab1c93f6b) to use inc-files istead of putting all in index.rst, but that change broke placement_api_docs.py. This change modifies placement_api_docs.py to go through all *.inc files in placement-api-ref directory and scan for the "rest method" header. Change-Id: I60150ab51173934f848662499dcf6af18625697e --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 42f0e40ac..83a3514b6 100644 --- a/tox.ini +++ b/tox.ini @@ -149,7 +149,7 @@ commands = # TODO(cdent): Get rid of the leading '-' after all the existing # routes have been documented. It causes the non-zero exit code to # ignored. - - python tools/placement_api_docs.py placement-api-ref/source/index.rst + - python tools/placement_api_docs.py placement-api-ref/source/ rm -rf placement-api-ref/build sphinx-build -W -b html -d placement-api-ref/build/doctrees placement-api-ref/source placement-api-ref/build/html