added maintainers (from author field) to ansible-doc
This commit is contained in:
parent
fbec8bfb90
commit
ae6d9ebf28
1 changed files with 8 additions and 0 deletions
|
@ -285,4 +285,12 @@ class DocCLI(CLI):
|
|||
text.append(doc['returndocs'])
|
||||
text.append('')
|
||||
|
||||
if isinstance(doc['author'], basestring):
|
||||
maintainers = [doc['author']]
|
||||
else:
|
||||
maintainers = doc['author']
|
||||
|
||||
text.append('MAINTAINERS: ' + ', '.join(maintainers))
|
||||
text.append('')
|
||||
|
||||
return "\n".join(text)
|
||||
|
|
Loading…
Reference in a new issue