Always build index for checkbuild
Always build the index files during checkbuild. With RST guides, the index was not build everytime. Also, update the Release Notes. Change-Id: I2b7f2e02e81de8255307d5a0b1b3f10f73c13273
This commit is contained in:
parent
d8165184d1
commit
5e9b716092
@ -1,6 +1,12 @@
|
|||||||
Release notes
|
Release notes
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
0.30.0
|
||||||
|
------
|
||||||
|
|
||||||
|
* ``openstack-doc-test``: Always built index page in checkbuild.
|
||||||
|
* ``openstack-auto-commands``: Add support for murano.
|
||||||
|
|
||||||
0.29.1
|
0.29.1
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -1571,6 +1571,26 @@ def handle_options():
|
|||||||
print(" Comments enabled: %s" % cfg.CONF.comments_enabled)
|
print(" Comments enabled: %s" % cfg.CONF.comments_enabled)
|
||||||
|
|
||||||
|
|
||||||
|
def check_no_building():
|
||||||
|
"""Figure out whether we need to build XML files."""
|
||||||
|
|
||||||
|
CONF = cfg.CONF
|
||||||
|
if not CONF.force and www_touched():
|
||||||
|
print("Only files in www directory changed, nothing to do.\n")
|
||||||
|
return True
|
||||||
|
# Build everything if we publish so that regularly all manuals are
|
||||||
|
# published, for testing ignore the locale directories.
|
||||||
|
if (not CONF.force and not CONF.publish and not CONF.language
|
||||||
|
and only_po_touched()):
|
||||||
|
print("Only files in locale directories changed, nothing to do.\n")
|
||||||
|
return True
|
||||||
|
# If only RST files are touched, there's nothing to do.
|
||||||
|
if (not CONF.force and only_rst_touched()):
|
||||||
|
print("Only RST files changed, nothing to do.\n")
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def doctest():
|
def doctest():
|
||||||
"""Central entrypoint, parses arguments and runs tests."""
|
"""Central entrypoint, parses arguments and runs tests."""
|
||||||
|
|
||||||
@ -1594,20 +1614,8 @@ def doctest():
|
|||||||
elif not CONF.api_site:
|
elif not CONF.api_site:
|
||||||
doc_path = os.path.join(doc_path, 'doc')
|
doc_path = os.path.join(doc_path, 'doc')
|
||||||
|
|
||||||
if not CONF.force and www_touched():
|
if check_no_building():
|
||||||
print("Only files in www directory changed, nothing to do.\n")
|
if CONF.create_index:
|
||||||
return
|
|
||||||
|
|
||||||
# Build everything if we publish so that regularly all manuals are
|
|
||||||
# published, for testing ignore the locale directories.
|
|
||||||
if (not CONF.force and not CONF.publish and not CONF.language
|
|
||||||
and only_po_touched()):
|
|
||||||
print("Only files in locale directories changed, nothing to do.\n")
|
|
||||||
return
|
|
||||||
# If only RST files are touched, there's nothing to do.
|
|
||||||
if (not CONF.force and only_rst_touched()):
|
|
||||||
print("Only RST files changed, nothing to do.\n")
|
|
||||||
if cfg.CONF.create_index:
|
|
||||||
generate_index_file()
|
generate_index_file()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user