Skip to content

Commit

Permalink
DOC: fixing hyperlink in documentation (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Jan 19, 2019
1 parent f79cc92 commit 3e305f8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('sphinxext'))
from github_link import make_linkcode_resolve
# from github_link import make_linkcode_resolve
import sphinx_gallery

# -- General configuration ------------------------------------------------
Expand All @@ -37,8 +37,7 @@
'sphinx.ext.autosummary',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.linkcode',
'sphinx.ext.viewcode',
# 'sphinx.ext.linkcode',
'numpydoc',
'sphinx_issues',
'sphinx_gallery.gen_gallery',
Expand Down Expand Up @@ -331,8 +330,8 @@ def setup(app):
# If true, do not generate a @detailmenu in the "Top" node's menu.
# texinfo_no_detailmenu = False

# The following is used by sphinx.ext.linkcode to provide links to github
linkcode_resolve = make_linkcode_resolve('imblearn',
u'https://github.com/scikit-learn-contrib/'
'imbalanced-learn/blob/{revision}/'
'{package}/{path}#L{lineno}')
# # The following is used by sphinx.ext.linkcode to provide links to github
# linkcode_resolve = make_linkcode_resolve('imblearn',
# u'https://github.com/scikit-learn-contrib/'
# 'imbalanced-learn/blob/{revision}/'
# '{package}/{path}#L{lineno}')

0 comments on commit 3e305f8

Please sign in to comment.