Library functions and modules should be in the 3 man page section. Also the files should end in '.3'

This commit is contained in:
Tim Bielawa 2012-10-03 09:43:38 -04:00
parent 53d24ef002
commit 85fb7c6d4b
45 changed files with 10 additions and 8 deletions

View file

@ -148,7 +148,7 @@ def get_docstring(filename, verbose=False):
if isinstance(child, ast.Assign):
if 'DOCUMENTATION' in (t.id for t in child.targets):
doc = yaml.load(child.value.s)
except:
if verbose:
raise
@ -210,7 +210,7 @@ def main():
module_dir = None
args = p.parse_args()
# print "M: %s" % args.module_dir
# print "t: %s" % args.type
# print "m: %s" % args.module_list
@ -251,7 +251,7 @@ def main():
if args.type == 'man':
env.filters['jpfunc'] = man_ify
template = env.get_template('man.j2')
outputname = "ansible.%s.man"
outputname = "ansible.%s.3"
includecmt = ""
includefmt = ""
if args.type == 'rst':
@ -330,7 +330,7 @@ def main():
#
# # Sneaky: insert author's name from Git config
#
# cmd = subprocess.Popen("git config --get user.name", shell=True,
# cmd = subprocess.Popen("git config --get user.name", shell=True,
# stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# out, err = cmd.communicate()
#