Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4ea013

Browse files
committed
Fix a bug which meant that if the module docstring was not present (due to the :no-main-docstr: option), the autosummary directive did not recognize that it was in the correct module.
1 parent 12c820f commit b4ea013

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sphinx_automodapi/automodsumm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def run(self):
166166
# sphinx doesn't necessarily recognize this fact. So we just force
167167
# it internally, and that seems to fix things
168168
env.temp_data['py:module'] = modname
169+
env.ref_context['py:module'] = modname
169170

170171
# can't use super because Sphinx/docutils has trouble return
171172
# super(Autosummary,self).run()

0 commit comments

Comments
 (0)