[Numpy-discussion] Documentation

Charles R Harris charlesr.harris at gmail.com
Tue May 15 15:19:55 EDT 2007


On 5/15/07, Alan G Isaac <aisaac at american.edu> wrote:
>
> On Tue, 15 May 2007, Charles R Harris apparently wrote:
> > The item in a consolidated list is divided into three
> > parts: name, type, explanation. I see no way in the CSS to
> > control the display of those parts, although it might be
> > an undocumented feature. I basically want it to look like
> > a definition list with maybe the current default for type,
> > which puts it in parenthesis.
>
> OK, I see.
> To control this we need a very small change in output.
> Instead of::
>
>     <dl class="docutils">
>         <dt><code class="link">myvar</code>: mytype</dt>
>         <dd>my explanation</dd>
>     </dl>
>
> I think (as long as the colon is ok) we just need::
>
>     <dl class="docutils parameterlist">
>         <dt>
>         <code class="link parameter">myvar</code>:
>         <span class="parametertype">mytype</span>
>         </dt>
>         <dd>my explanation</dd>
>     </dl>
>
> This actually seems a very appropriate change for epydoc and
> fully backwards compatible.  I'll copy this to Ed Loper and
> see if he will consider making this change. (I'm not sure he
> is monitoring this discussion any longer.)


What I would like it to look like, except for the type stuff, is attached.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070515/3c3dea18/attachment.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070515/3c3dea18/attachment-0001.html>


More information about the NumPy-Discussion mailing list