Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c4ee39dd
Commit
c4ee39dd
authored
Aug 10, 2014
by
Damien George
Browse files
tools, gendoc: Output small descr about module TOC.
parent
5f930337
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/gendoc.py
View file @
c4ee39dd
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment