mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Phoenix: fixed few issues on the gallery and on parameter types.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -649,7 +649,12 @@ class ParameterList(Node):
|
||||
docstrings = ''
|
||||
|
||||
for name, parameter in self.py_parameters.items():
|
||||
docstrings += ':param %s `%s`: %s\n'%(parameter.type, name, parameter.Join().lstrip('\n'))
|
||||
if parameter.type.strip():
|
||||
docstrings += ':param `%s`: %s\n'%(name, parameter.Join().lstrip('\n'))
|
||||
docstrings += ':type `%s`: %s\n'%(name, parameter.type)
|
||||
else:
|
||||
docstrings += ':param `%s`: %s\n'%(name, parameter.Join().lstrip('\n'))
|
||||
|
||||
|
||||
if docstrings:
|
||||
docstrings = '\n\n\n%s\n\n'%docstrings
|
||||
|
||||
@@ -402,7 +402,7 @@ def GenGallery():
|
||||
link_template = """\
|
||||
<table><caption align="bottom"><a href="%s"<b>%s</b></a</caption>
|
||||
<tr>
|
||||
<td><a href="%s"><img src="_static/%s/%s" border="20" alt="%s"/></a>
|
||||
<td><a href="%s"><img src="_static/images/widgets/fullsize/%s/%s" border="20" alt="%s"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user