Documentation using PyDoc

Paul Clinch pclinch at internet-glue.co.uk
Thu Oct 23 15:00:11 EDT 2003


I am not familiar with the numarray package, but you could tweak the pydoc code. 

in fact the pydoc file contains;
class HTMLDoc(Doc):

    which contains a function;
    def classlink(self, object, modname):
        some code ...

        return '<a href="%s.html#%s">%s</a>' %
                        ( module.__name__, name, classname(object, modname))
    
so "numarray.html#classname" is really what is wanted.

I guess insertion of code something like;

if module.__name__ == 'numarray':
    return '<a href="numarraydoc.html#%s">%s</a>' % name, classname(object, modname)
else
   ...

or something else suitable.

Good luck,

Paul Clinch




More information about the Python-list mailing list