@ -58,7 +58,7 @@ from ansible.utils.display import Display
# if a module is added in a version of Ansible older than this, don't print the version added information
# if a module is added in a version of Ansible older than this, don't print the version added information
# in the module documentation because everyone is assumed to be running something newer than this already.
# in the module documentation because everyone is assumed to be running something newer than this already.
TO _OLD_TO_BE_NOTABLE = 1.3
TO O _OLD_TO_BE_NOTABLE = 1.3
# Get parent directory of the directory this script lives in
# Get parent directory of the directory this script lives in
MODULEDIR = os . path . abspath ( os . path . join (
MODULEDIR = os . path . abspath ( os . path . join (
@ -88,7 +88,7 @@ def rst_ify(text):
try :
try :
t = _ITALIC . sub ( r ' * ' + r " \ 1 " + r " * " , text )
t = _ITALIC . sub ( r ' * ' + r " \ 1 " + r " * " , text )
t = _BOLD . sub ( r ' ** ' + r " \ 1 " + r " ** " , t )
t = _BOLD . sub ( r ' ** ' + r " \ 1 " + r " ** " , t )
t = _MODULE . sub ( r ' :ref:` ' + r " \ 1 < \ 1> " + r " ` " , t )
t = _MODULE . sub ( r ' :ref:` module_docs/ ' + r " \ 1 < \ 1> " + r " ` " , t )
t = _URL . sub ( r " \ 1 " , t )
t = _URL . sub ( r " \ 1 " , t )
t = _CONST . sub ( r ' `` ' + r " \ 1 " + r " `` " , t )
t = _CONST . sub ( r ' `` ' + r " \ 1 " + r " `` " , t )
except Exception as e :
except Exception as e :
@ -319,7 +319,7 @@ def too_old(added):
except ValueError as e :
except ValueError as e :
warnings . warn ( " Could not parse %s : %s " % ( added , str ( e ) ) )
warnings . warn ( " Could not parse %s : %s " % ( added , str ( e ) ) )
return False
return False
return added_float < TO _OLD_TO_BE_NOTABLE
return added_float < TO O _OLD_TO_BE_NOTABLE
def process_plugins ( module_map , templates , outputname , output_dir , ansible_version , plugin_type ) :
def process_plugins ( module_map , templates , outputname , output_dir , ansible_version , plugin_type ) :