[svn r38578] Made that the docstring isn't replaced by the function info anymore, but the

func info is appended, some small style issues.

--HG--
branch : trunk
This commit is contained in:
guido 2007-02-12 16:45:56 +01:00
parent 53c204962a
commit 5a46d43990
3 changed files with 19 additions and 10 deletions

View File

@ -63,15 +63,14 @@ class H(html):
fd = H.FunctionDef(localname, argdesc, fd = H.FunctionDef(localname, argdesc,
onclick=('showhideel(' onclick=('showhideel('
'document.getElementById("%s")); ' 'document.getElementById("%s")); '
'showhideel(' % (infoid,)))
'document.getElementById("%s")); ' infodiv = H.div(
'this.scrollIntoView()' % ( H.Docstring(docstring or '*no docstring available*',
infoid, docstringid))) id=docstringid),
ds = H.Docstring(docstring or '*no docstring available*', H.FunctionInfo(valuedesc, csource, callstack,
id=docstringid) id=infoid, style="display: none"),
fi = H.FunctionInfo(valuedesc, csource, callstack, class_='funcdocinfo')
id=infoid, style="display: none") super(H.FunctionDescription, self).__init__(fd, infodiv)
super(H.FunctionDescription, self).__init__(fd, ds, fi)
class FunctionDef(html.h2): class FunctionDef(html.h2):
style = html.Style(cursor='pointer') style = html.Style(cursor='pointer')

View File

@ -48,6 +48,10 @@ h2.funcdef {
color: blue; color: blue;
} }
h2.funcdef:hover {
text-decoration: underline;
}
.code a { .code a {
color: blue; color: blue;
font-weight: bold; font-weight: bold;
@ -91,7 +95,7 @@ h2.funcdef {
color: green; color: green;
} }
.funcinfo { .funcdocinfo {
border: 1px solid black; border: 1px solid black;
color: black; color: black;
padding: 1em; padding: 1em;

View File

@ -3,10 +3,14 @@
py/apigen sources [rev XXX] py/apigen sources [rev XXX]
DONE
* and "namespace" pages: * and "namespace" pages:
builtin namespace index [rev XXX] builtin namespace index [rev XXX]
DONE, except they're now called 'index of <dotted_name> [rev. XXX]'
* get konqueror to display indents in source code better? * get konqueror to display indents in source code better?
(currently it doesn't look like more than a single space) (currently it doesn't look like more than a single space)
@ -29,6 +33,8 @@
XXX it's nice but can you keep the docstring visible when XXX it's nice but can you keep the docstring visible when
more information is displayed/toggled? more information is displayed/toggled?
DONE too
* allow for flexibility regarding linking from * allow for flexibility regarding linking from
py/doc/*.txt documents to apigen with respect py/doc/*.txt documents to apigen with respect
to where apigen/ docs are located. to where apigen/ docs are located.