Browse Source

Merge "[cli-ref] emphasize the warning"

changes/45/427545/1
Jenkins 4 years ago
committed by Gerrit Code Review
parent
commit
91d96f6788
1 changed files with 16 additions and 2 deletions
  1. +16
    -2
      os_doc_tools/commands.py

+ 16
- 2
os_doc_tools/commands.py 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":


Loading…
Cancel
Save