tools, gendoc: Output small descr about module TOC.

This commit is contained in:
Damien George 2014-08-10 16:51:26 +01:00
parent 5f930337bc
commit c4ee39dd63
1 changed files with 6 additions and 5 deletions

View File

@ -327,12 +327,13 @@ class Doc:
def dump(self):
s = []
if self.modules:
s.append('# Modules')
s.append('')
s.append('These are the Python modules that are implemented.')
s.append('')
for m in sorted(self.modules.values(), key=lambda x:x.name):
s.append('')
s.append('# Modules')
for m in sorted(self.modules.values(), key=lambda x:x.name):
s.append('')
s.append('[`{}`]({}) - {}'.format(m.name, m.name, m.descr))
s.append('[`{}`]({}/) - {}'.format(m.name, m.name, m.descr))
return '\n'.join(s)
def write(self, dir):