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:
parent
47ddaeb334
commit
236ae1803a
|
@ -101,6 +101,7 @@ Release notes
|
|||
-----
|
||||
|
||||
* Fix openstack-doc-test building of image-api.
|
||||
* Fix publishing of api-ref.
|
||||
* Improve markdown conversion.
|
||||
|
||||
0.8
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue