mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
added maintainers (from author field) to ansible-doc
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user