On 3 Jun., 00:06, Florent Hivert <florent.hiv...@univ-rouen.fr> wrote: > It seems that this is more or less easily feasible. I've a prototype patch to > sphinx which only works for objects (eg: Parent). It won't work on thing like > "Parent.rename". I'd like to know if it is a desired feature before polishing > it further (and asking on sphinx-user for the good way to do this)... Also my > solution involve hacking directly into sphinx. Any suggestion for a better way > is welcome. > > So if anyone has a comment. Please answer. > > Cheers, > > Florent > > --- environment.py.orig 2010-06-02 22:52:17.000000000 +0200 > +++ environment.py 2010-06-02 23:55:35.000000000 +0200 > @@ -1606,7 +1606,18 @@ > 'object.' + name in self.descrefs: > newname = 'object.' + name > if newname is None: > - return None, None > + import sage > + try: > + obj = getattr(sage.all, name) > + except AttributeError: > + return None, None > + newname = obj.__module__+"."+obj.__name__ > + if newname not in self.descrefs: > + return None, None > + else: > + print "find_desc called modname=%s, classname=%s, name=%s, > type=%s"%( > + modname, classname, name, type) > + print "found %s"%(newname) > return newname, self.descrefs[newname] > > def find_keyword(self, keyword, avoid_fuzzy=False, cutoff=0.6, n=20):
Any measures of the slow down to Sphinx? Could the use of macros be an alternative? -Leif -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org