Commit 5ba9fe47 by Brian Coca

now supports maintainers and author field for display as MAINTAINERS

parent c603caca
...@@ -285,10 +285,18 @@ class DocCLI(CLI): ...@@ -285,10 +285,18 @@ class DocCLI(CLI):
text.append(doc['returndocs']) text.append(doc['returndocs'])
text.append('') text.append('')
if isinstance(doc['author'], basestring): maintainers = set()
maintainers = [doc['author']] if 'author' in doc:
else: if isinstance(doc['author'], basestring):
maintainers = doc['author'] maintainers.add(doc['author'])
else:
maintainers.update(doc['author'])
if 'maintainers' in doc:
if isinstance(doc['maintainers'], basestring):
maintainers.add(doc['author'])
else:
maintainers.update(doc['author'])
text.append('MAINTAINERS: ' + ', '.join(maintainers)) text.append('MAINTAINERS: ' + ', '.join(maintainers))
text.append('') text.append('')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment