Merge "[cli-ref] emphasize the warning"

This commit is contained in:
Jenkins 2017-01-26 20:45:10 +00:00 committed by Gerrit Code Review
commit 91d96f6788
1 changed files with 16 additions and 2 deletions

View File

@ -81,9 +81,23 @@ def generate_heading(os_command, api_name, title,
print("Documenting '%s help (version %s)'" % (os_command, version))
os_file = open(os.path.join(output_dir, os_filename), 'w')
os_file.write(".. ## WARNING #####################################\n")
os_file.write(".. ###################################################\n")
os_file.write(".. ## WARNING ######################################\n")
os_file.write(".. ############## WARNING ##########################\n")
os_file.write(".. ########################## WARNING ##############\n")
os_file.write(".. ###################################### WARNING ##\n")
os_file.write(".. ###################################################\n")
os_file.write(".. ###################################################\n")
os_file.write(".. ##\n")
os_file.write(".. This file is tool-generated. Do not edit manually.\n")
os_file.write(".. ##################################################\n\n")
os_file.write(".. http://docs.openstack.org/contributor-guide/\n")
os_file.write(".. doc-tools/cli-reference.html\n")
os_file.write(".. ##\n")
os_file.write(".. ## WARNING ######################################\n")
os_file.write(".. ############## WARNING ##########################\n")
os_file.write(".. ########################## WARNING ##############\n")
os_file.write(".. ###################################### WARNING ##\n")
os_file.write(".. ###################################################\n\n")
format_heading(title, 1, os_file)
if os_command == "heat":