mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
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(doc['returndocs'])
|
||||||
text.append('')
|
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)
|
return "\n".join(text)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue