Build markdown documents
Build markdown documents as used in image-api and identity-api. Change-Id: I6fcfd3472a53ba45db23946e67f89c576263f6bc
This commit is contained in:
parent
64f2f860c8
commit
855f7e6c60
|
@ -544,6 +544,27 @@ def build_book(book):
|
|||
["mvn", "generate-sources", "-B"],
|
||||
stderr=subprocess.STDOUT
|
||||
)
|
||||
# Repository: identity-api
|
||||
# Let's not check for "v3" but for the full name instead
|
||||
elif base_book.endswith("openstack-identity-api/v3"):
|
||||
output = subprocess.check_output(
|
||||
["markdown-docbook.sh", "identity-api-v3"],
|
||||
stderr=subprocess.STDOUT
|
||||
)
|
||||
output = subprocess.check_output(
|
||||
["mvn", "generate-sources", "-B"],
|
||||
stderr=subprocess.STDOUT
|
||||
)
|
||||
# Repository: image-api
|
||||
elif base_book == "openstack-image-service-api":
|
||||
output = subprocess.check_output(
|
||||
["markdown-docbook.sh", "image-api-v2.0"],
|
||||
stderr=subprocess.STDOUT
|
||||
)
|
||||
output = subprocess.check_output(
|
||||
["mvn", "generate-sources", "-B"],
|
||||
stderr=subprocess.STDOUT
|
||||
)
|
||||
else:
|
||||
output = subprocess.check_output(
|
||||
["mvn", "generate-sources", "-B"],
|
||||
|
|
Loading…
Reference in New Issue