Skip to content

Commit

Permalink
Correct linking
Browse files Browse the repository at this point in the history
  • Loading branch information
ymzayek committed Oct 30, 2023
1 parent d8fc894 commit de6d168
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions doc/modules/experimental.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
:no-members:
:no-inherited-members:

nilearn.experimental.surface
----------------------------
:mod:`nilearn.experimental.surface`
-----------------------------------

.. automodule:: nilearn.experimental.surface
:no-members:
:no-inherited-members:

**Classes**:

Expand Down
7 changes: 5 additions & 2 deletions doc/sphinxext/github_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ def _linkcode_resolve(domain, info, package, url_fmt, revision):

class_name = info["fullname"].split(".")[0]
module = __import__(info["module"], fromlist=[class_name])
if info["module"] == "nilearn.experimental.surface":
# For typed parameters, this will try to get uninitialized parameters
# and fail
try:
obj = attrgetter(info["fullname"])(module)
except AttributeError:
return
obj = attrgetter(info["fullname"])(module)

# Unwrap the object to get the correct source
# file in case that is wrapped by a decorator
Expand Down

0 comments on commit de6d168

Please sign in to comment.