Skip to content

Commit

Permalink
conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharath Ramsundar authored and Bharath Ramsundar committed May 29, 2020
1 parent 2ed5558 commit 4c2e074
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Expand Up @@ -85,6 +85,7 @@
print("NOTE: linkcode extension not found -- no links to source generated")


# This code was borrowed from Numpy's doc-to-source linker.
def linkcode_resolve(domain, info):
"""
Determine the URL corresponding to Python object
Expand Down Expand Up @@ -136,6 +137,7 @@ def linkcode_resolve(domain, info):

return "https://github.com/deepchem/deepchem/blob/master/deepchem/%s%s" % (
fn, linespec)
# TODO: Should we do similar dev handling?
#if 'dev' in numpy.__version__:
# return "https://github.com/numpy/numpy/blob/master/numpy/%s%s" % (
# fn, linespec)
Expand Down

0 comments on commit 4c2e074

Please sign in to comment.