Mercurial > pylearn
diff doc/ext.py @ 913:7edb78ba4c5b
Changed epy.doc slightly; commented a part concerning a wiki which does not seem to exist anymore; changed THEANO_API_ROOT to PYLEARN_API_ROOT
author | fsavard |
---|---|
date | Thu, 18 Mar 2010 15:39:32 -0400 |
parents | 0354b682c289 |
children |
line wrap: on
line diff
--- a/doc/ext.py Thu Mar 18 15:31:18 2010 -0400 +++ b/doc/ext.py Thu Mar 18 15:39:32 2010 -0400 @@ -6,10 +6,10 @@ from docutils.parsers.rst import roles import epydoc.docwriter.xlink as xlink -def role_fn(name, rawtext, text, lineno, inliner, - options={}, content=[]): - node = nodes.reference(rawtext, text, refuri = "http://pylearn.org/theano/wiki/%s" % text) - return [node], [] +#def role_fn(name, rawtext, text, lineno, inliner, +# options={}, content=[]): +# node = nodes.reference(rawtext, text, refuri = "http://pylearn.org/theano/wiki/%s" % text) +# return [node], [] _TARGET_RE = re.compile(r'^(.*?)\s*<(?:URI:|URL:)?([^<>]+)>$') @@ -62,7 +62,7 @@ try: xlink.set_api_file('api', os.path.join(app.outdir, 'api', 'api-objects.txt')) - apiroot = os.getenv('THEANO_API_ROOT') + apiroot = os.getenv('PYLEARN_API_ROOT') if not apiroot: apiroot = os.path.join(os.path.realpath('api'), '') xlink.set_api_root('api', apiroot) @@ -71,4 +71,5 @@ except IOError: print >>sys.stderr, 'WARNING: Could not find api file! API links will not work.' - app.add_role("wiki", role_fn) + #app.add_role("wiki", role_fn) +