summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2012-10-03 09:43:38 -0400
committerTim Bielawa <tbielawa@redhat.com>2012-10-03 10:18:55 -0400
commit85fb7c6d4bb0e0b7340e9f3d12eb6edcb2a64527 (patch)
tree6b65ff0d19bf879dbe6c03ce585966ea64655664 /hacking
parent53d24ef002ec3225b9b8c9343279d64ac0642c54 (diff)
downloadansible-85fb7c6d4bb0e0b7340e9f3d12eb6edcb2a64527.tar.gz
Library functions and modules should be in the 3 man page section. Also the files should end in '.3'
Diffstat (limited to 'hacking')
-rwxr-xr-xhacking/module_formatter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/hacking/module_formatter.py b/hacking/module_formatter.py
index c7605e3ab3..1136fd570b 100755
--- a/hacking/module_formatter.py
+++ b/hacking/module_formatter.py
@@ -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()
#