added module returnval documentation to web docs

This commit is contained in:
Brian Coca 2015-03-20 16:54:22 -04:00
parent 64b447f01b
commit c3076b8478
2 changed files with 50 additions and 8 deletions

View file

@ -289,7 +289,10 @@ def process_module(module, options, env, template, outputname, module_map, alias
doc['now_date'] = datetime.date.today().strftime('%Y-%m-%d')
doc['ansible_version'] = options.ansible_version
doc['plainexamples'] = examples #plain text
doc['returndocs'] = returndocs
if returndocs:
doc['returndocs'] = yaml.safe_load(returndocs)
else:
doc['returndocs'] = None
# here is where we build the table of contents...