[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:
parent
c549866308
commit
8f1b0aa52a
2
tox.ini
2
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user