Fix index generation for api-ref

api-ref does not have an index.html file, adjust for this.

Change-Id: I9cbd3cdaab75f53919d1191d8757dc00abaff09a
This commit is contained in:
Andreas Jaeger 2014-02-21 21:38:58 +01:00
parent 47ddaeb334
commit 236ae1803a
2 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,7 @@ Release notes
-----
* Fix openstack-doc-test building of image-api.
* Fix publishing of api-ref.
* Improve markdown conversion.
0.8

View File

@ -1011,6 +1011,12 @@ def generate_index_file():
(path, path))
index_file.write('<br/>\n')
if os.path.isfile(os.path.join(root, 'api-ref.html')):
path = os.path.relpath(root, publish_path)
index_file.write('<a href="%s/api-ref.html">%s</a>\n' %
(path, path))
index_file.write('<br/>\n')
index_file.write('</body>\n'
'</html>\n')
index_file.close()