[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
This commit is contained in:
Andrey Volkov
2017-04-12 15:13:23 +03:00
parent 640b152004
commit 90cabd0c8c
2 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -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