Merge "Handle User Guides"

This commit is contained in:
Jenkins 2015-04-04 13:35:28 +00:00 committed by Gerrit Code Review
commit 5286dcae17
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,8 @@ Release notes
* Added ``doc-tools-update-cli-reference``, a wrapper script to update
CLI references in the ``openstack-manuals`` repository.
* Handle guides that published without a content/ sub directory.
* Various fixes for auto generating commands and options.
0.23
----

View File

@ -1250,6 +1250,11 @@ def generate_index_file():
index_file.write('<a href="%s/content/index.html">%s</a>\n' %
(path, path))
index_file.write('<br/>\n')
elif os.path.isfile(os.path.join(root, 'index.html')):
path = os.path.relpath(root, publish_path)
index_file.write('<a href="%s/index.html">%s</a>\n' %
(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)