# HG changeset patch # User fsavard # Date 1268941172 14400 # Node ID 7edb78ba4c5b9816fc116dc404e718020f80f84d # Parent 0354b682c2896699f33e2143c0f1e8288e13dd08 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 diff -r 0354b682c289 -r 7edb78ba4c5b doc/ext.py --- 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) +